视频回退到Flash在Firefox中不工作
我一直在回顾开发者在HTML5网站上添加Flash回退的不同方式 我有这个虚拟视频的测试代码:视频回退到Flash在Firefox中不工作,firefox,html,Firefox,Html,我一直在回顾开发者在HTML5网站上添加Flash回退的不同方式 我有这个虚拟视频的测试代码: <video width="944" height="532" controls preload="auto" poster="imgs/vidPosterImg.jpg"> <source src="videos/2010reel.mp4" type="video/mp4" /> <source src="videos/2010reelogg.ogv"
<video width="944" height="532" controls preload="auto" poster="imgs/vidPosterImg.jpg">
<source src="videos/2010reel.mp4" type="video/mp4" />
<source src="videos/2010reelogg.ogv" type='video/ogg; codecs="theora, vorbis"'>
<embed src="flash/mainsceen.swf" type="application/x-shockwave-flash" width="944" height="531" allowscriptaccess="always" allowfullscreen="true"></embed>
<object width="320" height="240" type="application/x-shockwave-flash"
data="flash/mainsceen.swf">
<param name="movie" value="flash/mainsceen.swf" />
<param name="allowfullscreen" value="true" />
</object>
<object type="application/x-shockwave-flash" data="flash/mainsceen.swf" width="944" height="532">
<param name="movie" value="flash/mainsceen.swf">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always">
</object>
</video>
mp4和ogv在Firefox中工作。但Flash没有
此外,在Safari中,加载元数据时海报图像似乎会跳过到视频的第一帧。更正,WP4在Firefox中不起作用,只支持OGG。您必须在Firefox中通过删除WP4和OGG源代码进行测试。如果您离开了OGG源代码,它至少会使用HTML5进行播放 国家: Firefox将只播放Ogg(Firefox4也支持WebM),并且 如果没有与Firefox兼容的视频,它将不会降级为Flash 文件 因此,必须存在ogg源才能使闪存回退工作。你必须相信它是有效的。这就是FireFox浏览器解析视频元素的方式——如果它没有看到ogg源,那么它将无法到达flash回退区,并且您的回退区将被破坏 如果需要测试flash fallback是否有效,则必须删除其周围的视频和源标记,以便浏览器别无选择,只能运行flash视频