
Can't get JWPlayer to fallback to audio with image
I am using JWPlayer 6.8 and have quite a simple setup - basically it's a live video stream that falls back from HTML 5 HLS Streaming, to Flash RTMP and then if either of those are offline then it falls back to a live audio stream. I have 2 issues:
- I can't get a poster image to display on page load or when the audio stream loads either
- I cannot get this setup to work on Android at all, it attempts to play but buffers endlessly and nothing ever happens. I don't understand why an audio stream wouldn't load?
I have tried disabling the autostart but that doesn't change anything.
The test player is located here: http://trnsmt.tv/jw-player-test
Code below:
<script>
jwplayer('mediaspace').setup({
primary: 'html5',
image: 'http://trnsmt.tv/wp-content/themes/trnsmt/jwplayer-resources/vidplay2offline.jpg',
autostart: 'true',
stretching: 'exactfit',
width: '100%',
aspectratio: '16:9',
skin: 'http://trnsmt.tv/wp-content/themes/trnsmt/jwplayer-resources/skin/vapor.xml',
playlist: [{
sources: [
{ file: "rtmp://103.4.234.121/livepkgr/flv:livestream"},
{ file: "http://103.4.234.121/hls-live/livepkgr/_definst_/liveevent/livestream.m3u8"},
{ file: "http://audio.trnsmt.tv:8007/trnsmt.mp3", image: "http://trnsmt.tv/wp-content/themes/trnsmt/jwplayer-resources/vidplay2offline.jpg"}
]}]
});
jwplayer('mediaspace').onError(function(){
jwplayer('mediaspace').load({file:"http://audio.trnsmt.tv:8007/trnsmt.mp3",image:"http://trnsmt.tv/wp-content/themes/trnsmt/jwplayer-resources/vidplay2offline.jpg"});
jwplayer('mediaspace').play();
})
</script>