We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您应该能够使用媒体播放器控件来播放媒体文件。
从 http://msdn.microsoft.com 播放音频的示例/en-us/library/dd562692(VS.85).aspx,您应该能够将其调整为视频:
MSDN 上提供了更多信息,网址为 http://msdn.microsoft.com/en-us/library/dd564582(VS.85).aspx< /a>
You should be able to use the Media Player control to play media files.
Example of playing audio from http://msdn.microsoft.com/en-us/library/dd562692(VS.85).aspx, you should be able to adapt it to video:
There's a bit more information available on MSDN at http://msdn.microsoft.com/en-us/library/dd564582(VS.85).aspx
您可以考虑使用 Managed DirectX 中的音频/视频控件作为快速解决方案:
http://msdn.microsoft.com/en-us/library/bb324497%28VS.85%29.aspx#dx_avp_playing_a_video_file
如果您需要对视频进行更多控制,或者更好地与在您的应用程序中,您可以使用 DirectShow。有一个很好的 C# 互操作库可用于访问它 (DirectShowLib)。
使用 DirectShow 的另一个优点是 Windows 将处理加载给定媒体类型所需的编解码器和渲染组件。
You might consider using the Audio/Video controls in Managed DirectX as a quick solution:
http://msdn.microsoft.com/en-us/library/bb324497%28VS.85%29.aspx#dx_avp_playing_a_video_file
If you need more control over the video, or better integration with your application, you can use DirectShow. There is a good C# interop library for accessing it (DirectShowLib).
One other plus of using DirectShow is that windows will handle loading the necessary codecs and rendering components necessary for a given media type.
您始终可以使用 Silverlight 来显示视频内容,然后将 silverlight 应用程序插入您的网页。
以下是有关在 silverlight 中创建视频播放器的一些文章:
http://www.85turns.com/2008/04/02/create-a-video-player-silverlight-2-part-1/
或
http://weblogs.asp.net/dwahlin /archive/2008/03/07/silverlight-2-0-video-tutorials.aspx
You could always use Silverlight to show video content and then plug the silverlight application into your web page.
What follows are some articles on creating a video player in silverlight:
http://www.85turns.com/2008/04/02/create-a-video-player-silverlight-2-part-1/
or
http://weblogs.asp.net/dwahlin/archive/2008/03/07/silverlight-2-0-video-tutorials.aspx