让 Firefox 忽略网络视频并显示 flash
<video controls>
<source src="movie.mp4" type="video/mp4"/>
<embed src="Untitled-2.swf" type="application/x-shockwave-flash" width="480" height="270" />
</video>
我认为如果 Firefox 无法播放 HTML5 视频,它会回退到 Flash,但它只显示 HTML5 控件和空白屏幕。有没有办法强制它忽略mp4视频源?
<video controls>
<source src="movie.mp4" type="video/mp4"/>
<embed src="Untitled-2.swf" type="application/x-shockwave-flash" width="480" height="270" />
</video>
I thought Firefox would fallback to the Flash if it couldn't play the HTML5 video, but it just displays the HTML5 controls and a blank screen. Is there a way to force it to ignore the mp4 video source?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在使用 Firefox 和 MP4 时遇到了问题,它似乎在看到它时就崩溃了。它应该像你说的那样忽略它并回退,但事实并非如此。
例如,如果我有一个 OGG 视频(FF 将播放),如果它位于 MP4 之后,则它不起作用。把它放在前面,就可以了(显然是因为它永远不会到达MP4)。
我知道这无助于解决你的问题,除了浏览器嗅探并为其提供不同的代码之外,我不知道有什么方法可以让 FF 忽略 MP4(谁愿意这样做?)
I've had issues with Firefox and MP4, it just seems to break when it sees it. It's supposed to ignore it and fallback like you say, but doesn't.
e.g. if I have an OGG video (which FF will play) if it's after the MP4, it doesn't work. Put it before, and it's fine (obviously because it never gets to the MP4).
I know this doesn't help solve your issue though, I don't know any way of getting FF to ignore the MP4 other than browser sniffing and serving it different code (and who wants to do that?)