Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
ZurdoDev 9-Oct-14 8:08am    
Web Forms and Windows Forms are so different that you probably don't want to try and convert your windows forms method into a web forms method. I would suggest googling examples of what you want to do in ASP.Net.

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