Solved

How to show live video streaming in Asp.Net Webforms

Posted on 2014-10-09
2
779 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 78

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSL https .net web site force redirect 3 36
Run time Error 4 34
Error in script 11 45
Variable Event ? 3 22
New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now