【发布时间】:2018-08-30 08:43:44
【问题描述】:
我有以下代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<video width="400" autoplay>
<source src="../Videos/mov_bbb.mp4" type="video/mp4">
<source src="../Videos/mov_bbb.ogg" type="video/ogg">
<source src="../Videos/mov_bbb.webm" type="video/webm">
Your browser does not support autoplay HTML5 video tag.
</video>
<p><span>Video courtesy of </span><a href="http://bigbuckbunny.org/" target="_blank">Big Buck Bunny</a></p>
</body>
</html>
在 Firefox 中打开文件后,一切正常。
但是,在 Chrome 或 Opera 中打开文件时,会出现静止图像,但什么也没有发生。
为什么会这样?
我使用的是 Ubuntu 18.04
【问题讨论】:
标签: html google-chrome firefox html5-video ubuntu-18.04