Play video of any format in c#.net [closed]
How can I play a video of any format (eg:Mpeg etc) in c#.net ? Thanks
Yea, I want to play a video file in asp.net page.
OK, there are two parts to this problem; you need to have:
- Something which can play videos in a browser.
- A way of getting the video to the browser.
At the time of writing, your basic options for #1 are - HTML5, Flash, or Silverlight. In the near future, HTML5 will probably be the simplest to use, but right now some browsers will not be able to show an HTML5 video. You are left with Flash or Silverlight, and there are many tutorials out there on how to achieve this (e.g. this one). Once you have decided on what technology to use, streaming the video to it should be relatively simple, you could test it by simply hosting a static video in IIS for starters.
You can play videos using DirectShow.
You can handle directshow direclty. Example page: http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx
Or using a thirdparty library to help: http://sourceforge.net/projects/directshownet/
精彩评论