Solved

How to show live video streaming in Asp.Net Webforms

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
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.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

743 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

11 Experts available now in Live!

Get 1:1 Help Now