I’ve tried to figure out with the codes given, but admit it isn’t clear to me:
I have live Wowza streaming, making use of JW Player.
This works fine,
however, I’d like to add an HTML5 fallback.
The codes I see are providing such a fallback for files such as mp4.
What should I add to the embed code to let our live stream be able to play on for instance an Ipad?
Regards,
Wabke
Wabke,
Just replace the application name and stream name in those examples. Change “mp4:sample.mp4” to the name of your live stream. Change the application name from “vod” to your live application. For example:
Code:
<html>
<head>
<title>JW Player 5 /w HTML5 Fallback</title>
</head>
<body>
<script type='text/javascript' src='jwplayer.js'></script>
<div id='mediaplayer'></div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '480',
'height': '270',
'provider': 'rtmp',
'streamer': 'rtmp://[wowza-address]:1935/live',
'file': 'myStream',
'modes': [
{type: 'flash', src: 'player.swf'},
{type: 'html5', config:
{
'file': "http://[wowza-address]:1935/live/myStream/playlist.m3u8",
provider: 'video'
}
}
]
});
</script>
</body>
</html>
Richard
I also need, thanks a lot - Thanh Ca