playing video in ASP.NET page

Go To StackoverFlow.com

2

I have a video, and I need to play it in my ASP.NET page's home page, it should play in a customized small area whenever that home page gets loaded. Can anyone help me?

2012-04-04 08:05
by shanish
Which video is it flash or html5?Please be more specific - coder 2012-04-04 08:06
ya its a flv fil - shanish 2012-04-04 08:07
thanks XIII for ur hel - shanish 2012-04-04 08:20


4

If it's HTML5 convert it to ogg,mp4,WebM and then upload it to your server then it would be easier and you can do it this way:

<video width="320" height="240" controls="controls">
  <source src="yourmovie.mp4" type="video/mp4" />
  <source src="yourmovie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>

EDIT:

Actually there are tons of samples on the web. Here are some of them.

http://www.aspnet-video.com/aspnetvideo_Demonstration-PlayList-Presentation.aspx

http://www.c-sharpcorner.com/UploadFile/scottlysle/CsharpWebVideo04212007133218PM/CsharpWebVideo.aspx

http://videoplayer.codeplex.com/

2012-04-04 08:08
by coder
thanks for ur response and link Dotnetter, I shall tr - shanish 2012-04-04 08:11
you're welcome,and I have updated with HTML5 too you can try that which is more easier way to implement a video - coder 2012-04-04 08:11
thanks DotNetter, I think its not HTML5, however I'll try and let you kno - shanish 2012-04-04 08:18
Ok.If you have any prob let me know - coder 2012-04-04 08:27
I dont understand the example in that link u provided.......I've worked with silverlight, in that we can directly display the video right, is it not possible in simple asp.ne - shanish 2012-04-04 08:32
if you give some coding or demo samples it will be really helpful...am also searching for tha - shanish 2012-04-04 08:34
Above provided some samples where you can start with.As you said we can do in silverlight but not with normal Asp.Net application - coder 2012-04-04 08:39
thanks for ur kind response, i'll try and let you kno - shanish 2012-04-04 08:44
http://www.dotnetfunda.com/forums/thread4468-media-player-on-a-aspnet-web-form.aspx i just followed this link.......its working for me, but I dont like the controls to be displayed, only the video is enough....what can I d - shanish 2012-04-04 11:03
http://www.mediacollege.com/video/format/windows-media/streaming/embed.html I got the solution from here, thanks DotNetter for ur guidance....thanks alo - shanish 2012-04-04 11:45
Glad that it worked for you : - coder 2012-04-04 11:49
let us continue this discussion in chatshanish 2012-04-05 04:36
Ads