我想让每个人都会看flash(flv)格式,如果他们没有flash,他们会看到html5(mp4/m4v)视频。将JWPlayer 5转换为JWPlayer 6 flash(flv)和HTML(mp4)格式的视频
我使用JWPlayer 5,但由于一些错误的,我需要将其更改为JWPlayer 6
jwplayer('mediaplayer').setup({
'flashplayer': 'http://www.domain.com/jwplayer/player.swf',
'id': 'playerID',
'autostart': 'false',
'image': 'http://domain-images.s3.amazonaws.com/domain/picture.png',
'autostart': 'false',
'controlbar': 'bottom',
'width': '640',
'height': '<?php /*echo $video_player_height;*/ ?>',
'dock': 'false',
'stretching': 'fill',
'icons': 'false',
'mute': 'false',
'volume': '100',
'quality': 'false',
'modes': [
{ type: 'flash',
src: 'http://www.domain.com/jwplayer/player.swf',
config: {
'file': '<?php /*echo $media_files[$id]['video']*/ ?>.flv',
'provider': 'video'
}
},
{ type: 'html5',
config: {
'file': '<?php /*echo $media_files[$id]['video']*/ ?>.mp4',
'provider': 'video'
}
},
{ type: 'download',
config: {
'file': '<?php /*echo $media_files[$id]['video']*/ ?>.mp4',
'provider': 'video'
}
}
]
});
一切都很好,但我没有找到如何在JWPlayer做出相同。似乎我已经阅读了所有文档,但是如果使用RTMP或HLS协议,没有找到期望的方式。
为什么不只是提供一个MP4?除了WinXP上的IE8和Firefox之外,每个平台/浏览器都可以在HTML5模式下查看,这将回退到使用Flash显示MP4。根本不需要FLV。这是一个过时的格式。 – MisterNeutron
我们有5%的访问者与
user2285522
MP4工作在IE8及以下Flash自Flash 9 ... – emaxsaun