ACF distributions (Amazon CloudFront) use Flash Media Server for RTMP streams, so CF distributions alone are not a complete solution for providing streaming capabilities for non-flash players / devices too!
This gives you 2 options;
- offers streaming playback only to users / devices with normal, the ability to progressive download via HTML5 OR
- Setting up a WOWZA media server with content flow, if in HTML mode.
In any case, this can be achieved with the [] var mode player, where you can provide various settings such as path / file and other variables such as streamer and provider in your playlist / player .
Example Suppose you have the following setting:
- Bucket, 'my-music.s3.amazonaws.com/'. Here you store your media. For example, "my-music.s3.amazonaws.com/audio/" for audio and 'my-music.s3.amazonaws.com/video/' for video.
- RTMP streaming distribution with your 'my-music.s3.amazonaws.com/' as the source. This will be your flashvar streamer, something like 'XXXXXXXXXXX.cloudfront.net/cfx/st/'.
- MP3 located in the folder '/audio/song.mp3'.
To make this work either in Flash (with an RTMP stream) or in HTML5 (as a progressive download), you will need to configure the player as follows:
<script type="text/javascript"> var baseURL = "https://my-music.s3.amazonaws.com/"; jwplayer('mediaplayer').setup({ 'id': 'playerID', 'width': '480', 'height': '270', 'file': 'audio/song.mp3', 'provider': 'rtmp', 'streamer': 'rtmp://XXXXXXXXXXX.cloudfront.net/cfx/st/', 'modes': [ { type: 'flash', src: 'https://my-player.s3.amazonaws.com/plugins/jwplayer/player.swf' }, { type: 'html5', config: { 'file': baseURL + 'audio/song.mp3', 'provider': 'video' } } ] }); </script>
Of course, if you use a CMS, widget, plug-in or module for managing players, you can probably access and edit these settings on the administrator screen or, alternatively, install them programmatically.
It should be noted that the order in which type objects are placed in the mode [] array is the order in which the JW player tries to load.
For more information, see JW Embedder Modes here .
Double Stream Suggestion If you want to suggest streaming using HTML5, you should use the same approach by changing the attributes of the streamer, the provider in an object of type html5 accordingly.
Hope this will be helpful!
Geese