Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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>

4 Community Answers

Todd

JW Player Support Agent  
0 rated :

Our player doesn’t actually need both an RTMP and HLS source. Because RTMP requires Flash, this means that they will never work on mobile devices, and any browser that would be playing your RTMP stream via Flash will also be able to use that same Flash plugin to play an HLS stream. In browser and devices that natively support HLS, our player will remain in HTML5 mode. For any browser that does not natively support HLS (Chrome, Firefox, IE) our player switches to Flash mode to play the content.

emma

User  
0 rated :

Todd. I'm a bit confused by you answer. I know mobile won't play flash, but this a code base I grabbed from this site and is working well.

My question is :Can I use any code to use adaptive steaming on both mobile and desktop?

emma

User  
0 rated :

Sorry, I'm talking live streaming, to clarify...

Todd

JW Player Support Agent  
0 rated :

Our player will automatically do the adaptive streaming in any HLS stream by default. Please see http://support.jwplayer.com/customer/portal/articles/1430240-hls-adaptive-streaming for more details.

This question has received the maximum number of answers.