同一个文件,opera和chome测试正常,firefox怎么就是一个叉

这个例子倒是都好好的
http://www.w3schools.com/html5/tryit.as ... dio_simple
就改了个src内容,firefox就杯具了
delectate 写了:只支持ogg,ogv
delectate 写了:[html4strict]<!DOCTYPE HTML>
<html>
<body>
<audio src="http://blog.dan-teng.info/sites/default ... %A9%A9.ogg" controls="controls">
Your browser does not support the audio element.
</audio>
</body>
</html>[/html4strict]
filename
睡觉去了
MIME type的问题,nginx默认没有ogg的MIME type定义Also, the server must serve the file using the correct MIME type in order for Gecko to play it correctly.
这个问题我也遇到了,nginx 默认没有添加ogv 的mime type.JiangHui 写了:知道原因了
不是文件名也不是路径的问题
https://developer.mozilla.org/en/HTML/Element/audioMIME type的问题,nginx默认没有ogg的MIME type定义Also, the server must serve the file using the correct MIME type in order for Gecko to play it correctly.
vim /etc/nginx/mime.types
加上
video/ogg ogm;
video/ogg ogv;
video/ogg ogg;
重启服务器