如何在Chrome中以.avi文件格式播放视频? [英] how to play videos in .avi file format in chrome?
问题描述
已编辑
因为我不拥有这些文件,我并不假装对它们进行转码。我期待着能够重新启用旧的嵌入式对象来将这些文件播放到浏览器中。 需要Chrome
对于Firefox来说,解决方案应该是:
<!DOCTYPE html>
< html>
< head>
< title>< / title>
< / head>
< body>
codebase =http:// activex。 microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
standby =加载Microsoft®Windows®Media Player组件...type =application / x- OLEOBJECT>
< param name =FileNamevalue ='我的文件名'/>
< param name =AutoStartvalue =True/>
< param name =DefaultFramevalue =mainFrame/>
< param name =ShowStatusBarvalue =0/>
< param name =ShowPositionControlsvalue =0/>
< param name =showcontrolsvalue =0/>
< param name =ShowAudioControlsvalue =0/>
< param name =ShowTrackervalue =0/>
< param name =EnablePositionControlsvalue =0/>
< embed type =application / x-mplayer2pluginspage =http://www.microsoft.com/Windows/MediaPlayer/
src ='MY_AVI_FILE.avi'align =middle width =600height =500defaultframe =rightFrame
id =MediaPlayer2/>
< / body>
< / html>
只有少数文件视频格式可以在大多数浏览器中播放。 Chrome可能不希望支持非标准格式,从而污染了互联网内容不兼容的网页。
以下是各种浏览器支持的视频格式:
+ -------------------- + --------- ------------- + ------- + ----- +
|浏览器| MP4 | WebM | Ogg |
+ -------------------- + ---------------------- + - ------ + ----- +
| Internet Explorer |是| NO | NO |
| Chrome |是|是|是|
| Firefox |是|是|是|
| Safari |是| NO | NO |
|歌剧| YES(来自Opera 25)|是|是|
+ -------------------- + ---------------------- + - ------ + ----- +
Technically It was possible to play .avi files by loading an embedded object for a external player directly in the HTML. Now chrome deprecated that capabitilities and the solution left it's to transcode all my video files into .mp4
Edited Because I don't own the files I don't pretend to transcode them. I'm looking forward for a way to re-enable the old embedded objects to play those files into the browser. Chrome is required
For firefox a solution would be:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<object id="MediaPlayer1" width="690" height="500" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject">
<param name="FileName" value='My File Name' />
<param name="AutoStart" value="True" />
<param name="DefaultFrame" value="mainFrame" />
<param name="ShowStatusBar" value="0" />
<param name="ShowPositionControls" value="0" />
<param name="showcontrols" value="0" />
<param name="ShowAudioControls" value="0" />
<param name="ShowTracker" value="0" />
<param name="EnablePositionControls" value="0" />
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src='MY_AVI_FILE.avi' align="middle" width="600" height="500" defaultframe="rightFrame"
id="MediaPlayer2" />
</body>
</html>
There are only a few file video formats which can be played in most browsers. Chrome probably does not want to support non-standard formats and thus pollute the Web with incompatible content.
Here are the video formats supported by various browsers:
+--------------------+----------------------+-------+-----+
| Browser | MP4 | WebM | Ogg |
+--------------------+----------------------+-------+-----+
| Internet Explorer | YES | NO | NO |
| Chrome | YES | YES | YES |
| Firefox | YES | YES | YES |
| Safari | YES | NO | NO |
| Opera | YES (from Opera 25) | YES | YES |
+--------------------+----------------------+-------+-----+
这篇关于如何在Chrome中以.avi文件格式播放视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!