且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在asp.net中播放不同的视频文件格式?

更新时间:2022-04-28 03:48:42

您必须确保您的Web服务器支持您使用的视频格式.如果您发现视频在本地计算机上可以正常播放,但不能在实时网络服务器上播放,则可能是因为未针对视频格式正确配置实时网络服务器.您需要确保您的Web服务器支持视频的MIME类型.

***选择:当用户将视频上传到您的网站时,您需要对其进行处理并将其转换为Web服务器支持的格式.然后,只要用户请求视频,就可以在浏览器中播放.

当前,浏览器没有任何通用播放器可以播放数千种视频格式.
You must ensure that your web server supports the video format that you use. If you find that your video plays OK on your local computer, but doesn''t play on your live web server, it''s probably because the live web server isn''t configured properly for your video format. You need to ensure your web server supports the MIME type of your video.

The best option : When the user uploads the video to your site, then you need to process it and convert it to the format which is supported by your webserver. Then whenever the video is requested by the user , it can be played in the browser.

There is currently no any universal player for the browser which can play thousands of video formats available out there.


string myobj =";
myobj + ="";
myobj + =< source src ="〜/vidio/Brave_SummerGamesOnlineHD_High.wmv"type =" video/ogg"/>";
myobj + =您的浏览器不支持视频";
myobj + =</object>";
myobj + ="";



伊姆兰·珀维兹
MCPD/MCTS
印多尔
string myobj = "";
myobj += "";



Imran Pervez
MCPD/MCTS
Indore