How to play an AVI file in a video tag?

安稳与你 提交于 2019-11-30 07:21:15
scumtag

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 :)

Today there are excellent approaches to deal with it. One of them is the module fluent-ffmpeg found on npm.

It requires the previous installation of FFMPEG

The support of avi isn't direct. It will be necessary build a server with node to serve your html.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!