Hello Experts,
I am working on web based security product in asp.net webform technology, i want to display live video stream in my web application. Where i am reading the live stream from DVR box , i have achieved displaying live video stream in windows form application through picture box control as shown in below code.
[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;
}
Where i am passing picturebox handle property value as parameter to get the live video stream , so please help me to get handle property value of image control in asp.net webform or please sugest me any alternative workarounds to get the handle property value in asp.net web application or any other alternative control to achieve above requirement in asp.net web application.
Thanks in advance for any help and suggestions.
Thanks:
Pramod M