Visual Studio .NET - Video Streaming in ASP.Net

Asked By Munendra Maheshwari on 29-Dec-08 05:45 AM

Hi,

I am working in asp.net 3.5 and in my project I have to apply the video streaming just like in youtube's videos. How can I do that? Can any one give me any idea for that with code.

Munendra Maheshwari

read this

C_A P replied to Munendra Maheshwari on 29-Dec-08 06:27 AM
Ways to Display Video
There are three basic ways to display video on a Web form:
a. As an img HTML element using the dynsrc attribute
b. As an embedded video using the embed HTML element to insert the user' s default media player on the page
c. As an ActiveX object using the object HTML element to insert a specific media player on a page

As with audio, each of these approaches has advantages and disadvantages. The following sections explore these techniques in more detail.
1. Using the img Element
The easiest way to display a video on a Web form is to include the video as an HTML img element. The dynsrc attribute of the img element allows you to specify a video file to display in the element, as shown here:

<img dynsrc="clock.avi">
The Image and ImageButton server controls and the Image and Image Button HTML controls all support the dynsrc attribute. For example, the following HTML displays a video in an ImageButton control:

<asp:ImageButton id="ImageButton1" dynsrc="clock.avi"

runat="server"></asp:ImageButton>

However, the dynsrc attribute has the following limitations:
It is not supported by Netscape Navigator.
It accepts only AVI (Audio Video Interleaved) format files.
It cannot be controlled from client-side scripts the way that videos included as ActiveX objects can.
2. Embedding Videos
Use the embed HTML element to display a video on a Web form with the user' s default media player. For example, the following HTML embeds a video on a page:

<embed src="clock.avi" id="aviTest" hidden="false" height="200" width="200"

autostart="false" type="video/avi" loop="true"></embed>

Embedded videos are displayed using the plug-in that is registered for the media type. Using the embed HTML element to display video has the following advantages: It is supported by most browsers, including Internet Explorer and Netscape Navigator. The user can control the playback using the controls of the embedded media player. Multiple video formats can be displayed.
The disadvantage of using the embed HTML element is that it doesn' t provide the level of scripting support that you can get from an ActiveX object.

3. Using ActiveX objects is more complicated and please let me know if you realy need this.

try this link

C_A P replied to Munendra Maheshwari on 29-Dec-08 06:29 AM

http://www.velocityreviews.com/forums/t372665-live-video-streaming-in-aspnet.html

http://forums.asp.net/p/152698/478539.aspx

http://steveorr.net/articles/StreamingMedia.aspx

http://www.loosy-goosy-ness.com/2008/08/22/FLVFlashVideoStreamingWithASPNET20IISAndHTTPHandler.aspx

http://www.daniweb.com/forums/thread3274.html

 

Re :: Video Streaming in Asp.net

Shailendrasinh Parmar replied to Munendra Maheshwari on 29-Dec-08 06:52 AM
The users can post the YouTube Video URL into your system.

You can use the below codes to achieve it.

    <object width="425" height="355"><param name="movie" value="YouTube Video Link"></param><param name="wmode" value="transparent"></param>
    <embed src="YouTube Video Link" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355">
    </embed>
    </object>

You should retrieve the YouTube Video Link from your database and use ClientScript to register the above code snippet in CodeBehind.

See the following forum articles, you may get some information about
implementing you tube video on your site.

http:///

Hope it helps.
Re :: Video Streaming in Asp.net
Shailendrasinh Parmar replied to Munendra Maheshwari on 29-Dec-08 07:15 AM

See the following link for a forum discussion for saving Video file in database

http://social.msdn.microsoft.com/forums/en-US/sqlgetstarted/thread/b69620b5-5968-4dd4-8176-a7616e079334/

Also there are some other articles,

http://www.codeproject.com/KB/audio-video/videosav.aspx

http://weblogs.asp.net/stephenwalther/archive/2008/10/02/asp-net-mvc-application-building-family-video-website-5-multiple-file-upload-with-progress.aspx

http://www.motobit.com/tips/detpg_read-write-sql-image-file/

Hope it helps.

Video Streaming
mv ark replied to Munendra Maheshwari on 30-Dec-08 03:23 AM
For ASP.NET web apps, Silverlight is best suited for streaming video like the YouTube videos
Check these links for more info -
http://www.codeproject.com/KB/scrapbook/HowToCreateArticleVideos.aspx
http://www.codeplex.com/sl2videoplayer
Video Streaming
Bjorn Young replied to Munendra Maheshwari on 09-Jul-09 03:14 PM

Not sure if you work in Visual studio 2005/2008; however, if you do:

1) Forget the coding

2) Go to design mode

3) Insert a media player (drag-drop from the tool box)

4) define the stream's url in the Properties window.

5) End of story :o)

help
using asp.net & sql server : I'm planning to create a small jobpost website where users can post their short(2-4min) video along with e-resume! any one through some light, thank you! for upload video file You can visit our previous post -1 & Post -2 you will get idea. Thanks 3 part article shows how you can build a YouTube clone by converting a popular video format to Flash & also manage the videos using a database - http: / / ramcrishna.blogspot.com / 2008 html Flash is an ideal format because it takes relatively lesser size resulting in better streaming as well as bandwidth savings. The Flash format is better suited for the web compared
message broadcasting in asp.net ASP.NET 06-Jun-13 10:06 AM how do i create message / video broadcasting in asp.net Follow this link- http: / / www.codeproject.com / KB / tips / BijuBroadcast.aspx Follow the following steps hanselman.com / blog / StreamingLiveOrOnDemandVideoFromIIS7ToIOSDevicesIPhoneiPadAndSilverlightClients.aspx?utm_source = feedburner&utm_medium = feed&utm_campaign = Feed%3a%20ScottHanselman%20%28Scott%20Hanselman%20-%20ComputerZen.com%29 on live streaming via IIS using Microsoft Expression Encoder. Check this link http: / / before i start whts excatly
create video ASP.NET 06-Jun-13 10:05 AM Hi All, Please tell me, How I can implement video in my web application just like you tube. what the control or tools we've to used in application to video. in asp.net Sample Web Page contains a Literal1 control serving as a script container and a DropDownList AjaxControlToolkit" tagprefix = "cc1" %> < html xmlns = "http: / / www.w3.org / 1999 / xhtml" > < head runat = "server" > < title > ASP.NET Embedded Video Player | YouTube DEMO < / title > < / head > < body > < form id = "form1" runat = "server" > < asp
Hi!, I need help to implement the video chatting facility in my project, is it possible? if possible means kindly send me the sample programs. Hi, check the below URLs for more details. . . http: / / forums.asp.net / p / 185841 / 2342881.aspx http: / / www.codeproject.com / KB / ajax / ChatRoom.aspx Hi, Create a Flash movie for video chatting and embed it in your web application. Check the below link http: / / www.adobe these links to begin with. . . http: / / www.codeproject.com / KB / IP / videochat.aspx http: / / forums.asp.net / p / 185841 / 185841.aspx Hi! Sathish ASP.NET doesn’t provide any specific way
wondering, how to create a new video application with asp.net and sql server! let say people can load their 2min video from the site then
hi. . how to play real media player files in asp.net. . i was using the below code <object classid = 'CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' id how to handle the above issue. . need ur suggetsions regards gopal.s You can download Video control for asp.net from : <http: / / videoshow.codeplex.com / > < ASPNetVideo : WindowsMedia ID = "WindowsMedia1" runat = "server" VideoURL = "~ / DSCN3995.AVI
Hi I want to create a chat application in asp.net. I need to show the desktop also if necessary. If possible i want to include video chating in the application. Otherwise atleast I need audio. Can I have any help? hi here is some good link for this http: / / cutesoft.net / ASP.NET+Chat / default.aspx http: / / av-s.freedownloadscenter.com / chat-application.html You can try with
Hello, I have integrated normal chat in the site.but now I want to enable video chat in asp.net site.So suggest me something which can help me out to add video chat functionality.I have my project in asp.net c# in framework 3.5 Thanks You can use Fluorine or WebORB for this
Hello Everyone, I am in search of Audio / Video streaming. There is a combile application with internet. I will be receiving audio / video files from any internet device like (mobile, computer, iPhone- new). I have to store them I have an iPhone and I am recording a song or something (or shooting a video) and then I have to save, then the file should be saved in my server filepath in database and physical file in folder). Thanks in Advance. You can save the video file in SQL Server Database by converting it into binary data format. See the following link for a forum discussion for saving Video file in database http: / / social.msdn.microsoft.com / forums / en-US / sqlgetstarted / thread / b69620b5-5968