
Is HTML5 Live Streaming A Possibility?
I've been able to get live streaming working in Flash to the desktop with fallback to HTML5 on iOS. It's simple enough using the "modes" functionality in the JW Player.
See Flash First:
bc.. <html>
<head>
<title>JW Player 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': '640',
'height': '480',
'provider': 'rtmp',
'streamer': 'rtmp://[server]:1935/live',
'file': 'myStream',
'modes': [
{type: 'flash', src: '/jwplayer/player.swf'},
{type: 'html5', config:
{
'file': "http://[server]:1935/live/mp4:myStream/playlist.m3u8",
provider: 'video'
}
}
]
});
</script>
</body>
</html>
Yet, if I do HTML5-first for my live stream, iOS has no objections, but none of my browsers work. That is, presumably, because live streaming HTML5 video to iOS isn't the same as live streaming HTML5 video to Chrome or Firefox or IE or even Android.
See HTML5 First:
bc.. <html>
<head>
<title>JW Player 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': '640',
'height': '480',
'provider': 'rtmp',
'streamer': 'rtmp://[server]:1935/live',
'file': 'myStream',
'modes': [
{type: 'html5', config:
{
'file': "http://[server]:1935/live/mp4:myStream/playlist.m3u8",
provider: 'video'
}
}
{type: 'flash', src: '/jwplayer/player.swf'},
]
});
</script>
</body>
</html>
So my question is: Can you live stream HTML5 video to anything other than iOS? Or are you still limited to Flash for live streaming on the desktop?