HTML Video Controll在Firefox上不起作用 [英] Html video controll doesn't work on Firefox

查看:74
本文介绍了HTML Video Controll在Firefox上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的网站上显示视频.这是代码:

I'm trying to display a video on my website. Here is the code:

<video controls>
  <source src="my_location.mp4" type="video/mp4" />
  <source src="my_location.ogv" type="video/ogv" />
  <source src="my_location.webm" type="video/webm" />
  Your browser does not support this content
</video>

它适用于所有浏览器,但问题是,如果我的视频和ogv格式具有控件属性,则Firefox上的暂停按钮将无法正常工作.

It worked for all browser but the problem is that the pause button on Firefox does not work event if I have the controls attribute on my video and ogv format.

有人知道为什么吗?

推荐答案

没有专用的暂停按钮-相反,单击播放按钮后会用暂停按钮进行切换.另请参见w3schools.com上的示例:

There is no dedicated pause button - instead the play button is toggled with a pause button after it's clicked. See also the example at w3schools.com:

http://www.w3schools.com/HTML/html5_video.asp

添加:

这在您的代码中:

<source src="my_location.ogv" type="video/ogv" />

应该是

<source src="my_location.ogv" type="video/ogg" />.

(文件类型为ogg,而不是ogv,而不是文件扩展名本身.)

(ogg instead of ogv on the file type / not on the file extension itself).

这篇关于HTML Video Controll在Firefox上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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