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

RTMP Stream with HTML5 fallback


I use this code, that works great:
bc.. <script type='text/javascript' src='jwplayer.js'>
</script>
<div id='mediaplayer'></div>
<script type="text/javascript">jwplayer('mediaplayer').setup({'id': 'playerID', 'width': '100px', 'autostart': 'false','provider': 'rtmp','streamer': 'rtmpt://IP-address:Port/live/','file': 'livestream','modes': [{type: 'flash', src: 'player.swf'},{type: 'html5',config: {levels: [ {'file': 'http://IP-address:Port/live/livestream/playlist.m3u8'} ],'provider': 'video'}}]});
</script>



I am wanting to just do an audio stream with the same setup. Is there an option I can add to just make it audio only, then later on take it out and make it a video stream again? Or maybe just have it display the audio bar?

That and I am using an older version of JW player.
If i went to JW player 6 would the embed look different?

Thank you!!

5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You can’t set it to change the size like that so it will be small for audio, bit for video.

For JW6, this set up is like – http://www.longtailvideo.com/support/jw-player/29394/hls-with-mp4-fallback

1st source is rtmp, 2nd source is m3u8.

JW Player

User  
0 rated :

Then how can I use the same streaming for audio?
Right now i have just set it to have a width of 250px and a height of 40px and the audio just comes out and have a black screen.
How can I have it just show the audio bar for the same type of stream and fallback?

Thank you!

Ethan Feldman

JW Player Support Agent  
0 rated :

You can’t, you should show some album art for audio.

JW Player

User  
0 rated :

So the best way to have that setup but for audio is to use it as is... width: 250 and height 40... then do an image.. ?
If that is, then cool. (for jw5)

If i used jw6 if there an option for audio only with RTMP flash and html5?

Thank you for your help

Ethan Feldman

JW Player Support Agent  
0 rated :

I meant for jw6 ;)

This question has received the maximum number of answers.