视频 JS 的 Firefox 错误 [英] Firefox error with Video JS

查看:25
本文介绍了视频 JS 的 Firefox 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Firefox (ver 22/23) 中收到一个错误消息:

I am getting an error in Firefox (ver 22/23) that says:

不支持video/mp4"的指定type"属性.媒体资源 xxxxx 加载失败.

Specified "type" attribute of "video/mp4" is not supported. Load of media resource xxxxx failed.

这个可以修复吗?

推荐答案

这都是关于 MIME 类型的.当您在视频源上指定 type 属性时 - 您还需要确保您的服务器了解该类型文件的实际含义.

It's all about MIME types. When you specify type attribute on your video source - you also need to make sure your server understands what that types of files actually mean.

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

将这些行添加到您服务器的 .htaccess 文件中,您就可以正常运行了.

Add these lines to your server's .htaccess file and you'll be up'n'running.

有关视频转换/播放的任何其他信息 - 查看这篇文章

For any additional information related to video conversion/playback - check out this article

这篇关于视频 JS 的 Firefox 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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