Solved

How to show live video streaming in Asp.Net Webforms

Posted on 2014-10-09
2
822 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 81

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…

732 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