Reputation: 3195
I am working with JWPlayer 6 using a Flash enabled browser.
How can I get JWPlayer 6 to use HTML 5 even if flash is installed.
I currently have the following config for JWPlayer:
jwplayer("player").setup({
type: 'rtmp',
streamer: "<?php echo "$wowza/$app_name"; ?>",
height: 540,
width: 960,
'autostart': 'true',
'bufferlength': '3',
'file': '<?php echo $stream_name; ?>'
});
lee
Upvotes: 2
Views: 4152
Reputation: 304
JWPlayer will opt to use the HTML5 version over a Flash version with any capable browser. http://www.longtailvideo.com/support/jw-player/28837/browser-device-support#modes
You will need to list both the RTMP stream AND the HLS url within your sources in order for the JW Player to fall back. http://www.longtailvideo.com/support/jw-player/29394/hls-with-mp4-fallback
This is what that might look like for you:
jwplayer("player").setup({
type: 'rtmp',
sources: [{
file: "<?php echo "$wowza/$app_name"; ?>"
},{
file: "<?php echo "$wowza/$app_name"; ?>/playlist.m3u8"
},{
file: "http://non-wowza/assets/myVideo.mp4"
}],
height: 540,
width: 960,
'autostart': 'true',
'bufferlength': '3',
'file': '<?php echo $stream_name; ?>'
});
Upvotes: 3