如何在视频标签中播放AVI文件? [英] How to play an AVI file in a video tag?

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

问题描述

我想知道是否可以让浏览器播放视频标签内的AVI文件。



我在网上发现的所有关于它的内容都侧重于MP4和Ogg格式,但没有人谈论AVI格式。



我找到的唯一解决方案是放弃 video 标记,并使用JW Player播放视频。 仅解析DivX网络播放器可以传输AVI文件。实际上,这些插件也可以让vlc传输avi文件,但它的bug。

有时候,为了得到一个可靠的答案是一个痛苦的屁股。它是互联网的一大噱头。

 < object id =ie_pluginclassid =clsid:67DABFBF-D0AB -41fa-9C46-CC0F21721616
width =660
height =300
codebase =http://go.divx.com/plugin/DivXBrowserPlugin.cab>
< param name =custommodevalue =stage6/>
< param name =autoPlayvalue =false/>
< param name =srcvalue =link-to-avi/>
< param name =bannerEnabledvalue =false/>

< embed id =np_plugintype =video / divx
src =link-to-avi
custommode =stage6
width =660
height =300
autoPlay =false
bannerEnabled =false
pluginspage =http://go.divx.com/plugin/下载/>
< / embed>
< / object>

请注意link-to-avi两次的位置:)

I'm wondering if it's possible to make a browser play a AVI file within a video tag.

Everything I found on the web talking about it focus on MP4 and Ogg formats but nobody talks about the AVI format.

The only solution I found is to drop the video tag and make the video playable using JW Player.

解决方案

Only the DivX web player can stream avi files. actually, theres a plug in for vlc to stream avi files also, but its buggy.

Sometimes it's a pain in the ass to get a solid answer. its one of the big sucks of the internet.

<object id="ie_plugin" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" 
            width="660" 
            height="300" 
            codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"> 
<param name="custommode" value="stage6" />
<param name="autoPlay" value="false" />
<param name="src" value="link-to-avi" />
<param name="bannerEnabled" value="false" />

<embed id="np_plugin" type="video/divx" 
src="link-to-avi" 
custommode="stage6" 
width="660" 
height="300" 
autoPlay="false"  
bannerEnabled="false"
pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object>

note where it says "link-to-avi" twice :)

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

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