我在我的项目中使用闪回后退进行Html5视频播放(如果它不支持html5)。 但是,如果浏帮助我。
<video controls="controls" preload="auto" poster="image.url" >
<source src="video.url" type="video/ogg" />
<source src="video.url" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'/>
</video>
<object type="application/x-shockwave-flash" data="flowplayer-3.1.1.swf">
<param name="movie" value="flowplayer-3.1.1.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashVars" value="config={'playlist':['image.url',
{'url':'video.url','autoPlay':false}]}" />
<img alt="Image" src="" width="191px" height="256px"
title="No video playback capabilities, please download the video below" />
</object>
答案 0 :(得分:3)
只需将<object>
放在<video>
标记内,使其成为包含源标记的兄弟。如果浏览器不支持<video>
,则会在内部呈现内容,类似于<noscript>
,如果脚本已关闭。
<video controls="controls" preload="auto" poster="image.url" >
<source src="video.url" type="video/ogg" />
<source src="video.url" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'/>
<object type="application/x-shockwave-flash" data="flowplayer-3.1.1.swf">
<param name="movie" value="flowplayer-3.1.1.swf" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<param name="flashVars" value="config={'playlist':['image.url',{'url':'video.url','autoPlay':false}]}" />
<img alt="Image" src="" width="191px" height="256px" title="No video playback capabilities, please download the video below" />
</object>
</video>