如何在asp.net中播放不同的视频文件格式? [英] How to play Different video file format in asp.net?

查看:145
本文介绍了如何在asp.net中播放不同的视频文件格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个应用程序,用户可以像Facebook.i一样上传和播放任何格式的视频文件到他的个人资料中.我已经尝试过,所以可能会嵌入,视频等代码.
但是它的文件支持有限,例如某些文件未运行示例.3gp等,我获得了有关vlc播放器的一些信息,但无法找到任何基于网络的示例来播放所有视频类型.

因此,请与我分享任何可以播放所有视频格式的基于网络的有效示例.

您还可以向我建议任何优秀的Web播放器,并将其与asp.net应用程序集成.

Hi ,
i have application in which user can upload and play play any kind of format video file into his profile just like Facebook.i have tried so may code like embed,video,etc
but it has limited file support say some file are not running example .3gp etc,i got some information about vlc player but unable to find any web based example to play all video types.

so please share me any working web based example which can play all video format.

you can also suggest me any good web player and integration of its with asp.net application

推荐答案

您必须确保您的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 + ="<视频宽度=" 462>";
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


这篇关于如何在asp.net中播放不同的视频文件格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆