视频将在Firefox中播放,但不是在HTML5视频标签时? [英] video will play in firefox but not when in html5 video tag?

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

问题描述

因此,我们正在建立一个HTML5播放器的视频网站(和Windows的备份闪存)。

但是真正困扰我的是当我在firefox中查看这个文件时,
http://www.roguefilms .com.local / media / uploads / 2010/07/1495 / 8_lg-poke.mov (本地存储),但是当它在html视频标签中是什么都不做。它显示海报,但不播放视频。它甚至不显示对不起 - 您的浏览器不支持!

我知道ff喜欢ogg,我们可以使用闪存备份播放器,但如果它可以播放它作为一个ht64 .mov没有玩家为什么不能与它?似乎有点愚蠢?



如果有人知道任何事情,这将是伟大的...

 < video controls =controls
id =myVideo
src =/ media / uploads / 2010/07/1495 / 8_lg-poke.mov
=/ media / uploads / 2010/07/1495 / still.jpg
height =360
width =640>

抱歉 - 您的浏览器不受支持!

< / video>

best,Dan。

解决方案

当你刚加载.mov文件时,服务器提供的内容类型会导致Firefox检查并查看是否有插件处理内容。在这种情况下,QuickTime处理它,这就是它播放的原因。


$ b $ < video 标签不会启动插件然而,播放内容。

so we're building a video site with a html5 player (and backup flash for windows).

But what's really stumping me is when i view this file in firefox it plays; http://www.roguefilms.com.local/media/uploads/2010/07/1495/8_lg-poke.mov (stored locally) but when its in the html video tag is does nothing. It shows the poster but doesn't play the video. It doesn't even show the 'Sorry - your browser is not supported!'

I know ff prefers ogg and we can use the flash backup player but if it can play it as a ht64 .mov without the player why can't it with? Seems a bit daft?

If anyone knows anything it would be great...

<video controls="controls"  
    id="myVideo"
    src="/media/uploads/2010/07/1495/8_lg-poke.mov"
    poster="/media/uploads/2010/07/1495/still.jpg" 
    height="360" 
    width="640">

            Sorry - your browser is not supported!

</video>

best, Dan.

解决方案

When you just load the .mov file, the content-type your server provides causes Firefox to check and see and see if any plugins handle the content. In this case, QuickTime handles it, which is why it plays.

The video tag doesn't launch plugins to play content, however.

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

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