我试图使用BigVideo.js,它在Chrome和Safari中正常工作,但是在Firefox中,错误“this.tech is undefined”显示导致视频无法工作。有没有人有过这个错误,并知道修复?Video.js this.tech undefined firefox
欢呼:)
我试图使用BigVideo.js,它在Chrome和Safari中正常工作,但是在Firefox中,错误“this.tech is undefined”显示导致视频无法工作。有没有人有过这个错误,并知道修复?Video.js this.tech undefined firefox
欢呼:)
并非所有的视频编解码器都支持所有的浏览器。请确保你想播放的视频格式是与Firefox兼容
http://dfcb.github.com/BigVideo.js/
For best results in Firefox, create an Ogg version of your video and configure BigVideo.js as below or in this example. (note: works for WebM also)
$(function() { var BV = new $.BigVideo({useFlashForFirefox:false}); BV.init(); BV.show('vids/river.mp4', {altSource:'vids/river.ogv'}); });
https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats具有的格式列表中的每个浏览器支持
在线视频转换实际上做支持WebM了很好的工作
http://video.online-convert.com/convert-to-webm
或者如果必须奥格...
http://video.online-convert.com/convert-to-ogg
你会发现它大大优于使用的.ogv和插件非常支持它。对环境的视频,你会做更多的东西一样:
var BV = new $.BigVideo({useFlashForFirefox:false});
BV.init();
BV.show('vids/river.mp4', {
ambient: true,
altSource:'vids/river.webm'
});
一定要检举您的MP4作为编码的fastStart一样好,甚至你会发现它缓冲到100%之前,IE就会开始播放。
当videojs被指示仅使用Flash,但未安装Flash时,出现此错误。当使用缩小/非调试版本时,它还会显示错误消息“TypeError:a.h is undefined”。