Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Experts,

I want to display live video stream in my web application. Where i am reading the live video stream from DVR box , i have achieved displaying live video stream in windows form application through picture box control as shown in below code.

C#
[DllImport("HCNetSDK.dll")]
public static extern int NET_DVR_RealPlay_V30(int iUserID, ref NET_DVR_CLIENTINFO lpClientInfo, REALDATACALLBACK fRealDataCallBack_V30, IntPtr pUser, UInt32 bBlocked);
 
PreviewDemo.CHCNetSDK.NET_DVR_CLIENTINFO lpClientInfo1 = new PreviewDemo.CHCNetSDK.NET_DVR_CLIENTINFO();
 
lpClientInfo.lChannel = 1;
lpClientInfo.hPlayWnd = PictureBox1.Handle;
lpClientInfo.lLinkMode = 0;
lpClientInfo.sMultiCastIP = null;
 
//Method to get video Stream
m_lRealHandle = PreviewDemo.CHCNetSDK.NET_DVR_RealPlay_V30(f, ref lpClientInfo, null, pUser, 1);

public struct NET_DVR_CLIENTINFO
{
   public Int32 lChannel;
   public Int32 lLinkMode;
   public IntPtr hPlayWnd;
   public string sMultiCastIP;
}


How do i show live video streaming in asp.net webform , please help me on how can i achieve the above in asp.net webforms.

Thanks in advance for any help and suggestions.

Pramod M
Posted
Updated 9-Oct-14 7:04am
v2

1 solution

Please refer below link. I think this may help you

live video streaming in asp.net using c#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900