Solved

How to show live video streaming in Asp.Net Webforms

Posted on 2014-10-09
2
801 Views
Last Modified: 2014-10-27
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.
 


[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;
    }

Open in new window



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

 
Thanks:
Pramod M
0
Comment
Question by:Leverageconsulting
2 Comments
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40371486
streaming from the desktop to the desktop is relatively easy since you control the environment.. over the web it's an entirely different story. Multiple browsers, multiple speeds, multiple latency.. Since you mentioned LIVE vs recorded playback you need an encoder that will take the live video and convert it using multiple bit-rates and codecs.

now you need something to deliver this content IIS has the smooth streaming extension that knows about multiple versions of the data and will send 2 seconds of data and see if it is received properly if not if possible it will step down to the lower bit-rate stream.  Flash Media encoder is another possibility.. Expression media encoder from Microsoft is another way (no longer supported and only WMV encoding is now available)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question