I want to make that everybody would watch flash(flv) format expect if they don't have flash they would see html5(mp4/m4v) videos.
I was using JWPlayer 5, but because of some bugs I need to change it to 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'
}
}
]
});
Everything was good, but I didn't find how to make same in JWPlayer. Seems that I've read all the documentation, but didn't find the way expect if I'm using RTMP or HLS protocols.