
Adaptive Amazon streaming on both desktop and mobile
Is it possible to have both flash and html5 adaptive streaming with Amazon Cloudfront? I am using the code below which has been working well but the client would like to try adaptive streaming to send two different encodes. I don't want to use wowza and as I setup my cloudfront distributions on demand.
Is this possible?
How would I amend my code?
Thanks
Emma
<div class="wrapper">
<div id="my-video"></div>
</div>
<script src="http://xxx.com/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="key098098"</script>
<script type="text/javascript">
jwplayer("my-video").setup({
playlist: [{
sources: [{
file: "rtmp://xxx.compute-1.amazonaws.com/livepkgr/livestream?adbe-live-event=liveevent"
},{
file: "http://xxx/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8"
}]
}],
primary: "flash",
autostart: 'true',
stretching: 'exactfit',
});
</script>