我目前有JW播放器设置,因此它的第一个选项是HTML5,后备是FLV,然后回退到下载。
只有HTML5路线似乎可以流式传输视频,但我也需要它来在Flash路径中流式传输视频。
任何想法我需要使用哪些附加参数?
目前的设置如下:
jwplayer('the_video_container').setup({
'id': 'playerID',
'width': '654',
'height': '410',
'file': '/video/keyword_vid_1.mp4',
'autostart': 'true',
'controlbar': 'none',
'screencolor': 'FFFFFF',
'repeat': 'always',
'modes': [
{type: 'html5'},
{type: 'flash', src: '/js/jwplayer/player.swf'},
{type: 'download'}
]
});
答案 0 :(得分:1)
尝试按如下方式设置JW播放器:
jwplayer('the_video_container').setup({
'id': 'playerID',
'flashplayer':'/js/jwplayer/player.swf',
'width': '654',
'height': '410',
'file': '/video/keyword_vid_1.mp4',
'autostart': 'true',
'controlbar': 'none',
'screencolor': 'FFFFFF',
'repeat': 'always',
'modes': [
{type: 'html5'},
{type: 'flash'},
{type: 'download'}
]
});
请记住,对于那些在html5播放中不支持mp4的浏览器,您可能希望在src
块中包含其他html5
属性。