开发者

Play video of any format in c#.net [closed]

开发者_如何转开发 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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:

  1. Something which can play videos in a browser.
  2. 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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜