2
我试图设置JW播放器以HTML5专用模式播放。 显然它不工作,我只能看到闪回后备。JW播放器HTML5专用模式
我的设置:
<div id='videoContainer'>This text will be replaced</div>
<script type='text/javascript'>
jwplayer('videoContainer').setup({
'flashplayer': '/jwplayer/player.swf',
'file': '/videos/clip_01.mp4',
'image': '/images/preview.jpg',
'skin': '/jwplayer/skins/lulu.zip',
'backcolor': 'FFFFFF',
'frontcolor': '000000',
'lightcolor': '000000',
'screencolor': '000000',
'controlbar': 'bottom',
'width': '640',
'height': '480',
'modes': [
{ type: "html5",
config: {
file: "/videos/clip_01.mp4"
}
},
//I commented this line out so it doesn't fallback to flash
//{ type: "flash", src: "/jwplayer/player.swf" },
{ type: "download" }
]
});
</script>
我做得不对或者是此功能尚未公布?
哪个浏览器是你在尝试这种?如果使用非支持MP4的浏览器(如Firefox或Opera),则默认使用Flash。 –
谢谢,我想这是答案。 我正在使用Firefox。 – Manticore
在Firefox中尝试一个WebM或OGG文件,看看会发生什么,这会为你确认。 –