Solved

How to show live video streaming in Asp.Net Webforms

Posted on 2014-10-09
2
793 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 79

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
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.

776 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