[英]how can i play a video file in asp.net in c#?
I want to play a video file without any installed plugin for example . 我想播放视频文件,而无需任何安装的插件例子 。 File extensions include .mov, .flv, .avi, or another.
文件扩展名包括.mov,.flv,.avi或其他。 How can i play a video file but i won't user must be to install flash player and how can i play mp3 file in Asp.net in C#?
我该如何播放视频文件,但我不是用户必须安装Flash Player以及如何在C#中的Asp.net中播放mp3文件? I installed visual studio 2010 ultimate.
我安装了Visual Studio 2010 Ultimate。
You have two options: 您有两种选择:
HTML5 video HTML5视频
<video src="movie.avi" controls> <!-- The msg if browser doesn't have HTML5 video support --> </video>
<object>
for Windows Media player/QuickTime etc. Windows Media Player / QuickTime等的
<object>
The first option will let you embed nicely the video, but will limit the user base(less than a half of browsers have HTML 5 support). 第一个选项可让您很好地嵌入视频,但会限制用户群(不到一半的浏览器支持HTML 5)。 Second option force the user to download the app.
第二个选项强制用户下载应用程序。
这就是您想要的: 使用C#在asp.net中播放视频
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.