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

Playlist doesn't advance on connection error


Hi,

I'm trying to configure JW player (latest version) to connect to a live RTMP stream. We have 2 servers and I set up a playlist containing the stream on each of these servers as separate playlist items. The connection to the first server works fine, but if there is an error, it doesn't advance to the next playlist. How can we make this happen?

playerInstance = jwplayer("container");
playerInstance.setup({
playlist: [ { file: "rtmp://audio1.example.com/Red5FlashAudio/flv:audio_stream" },
{ file: "rtmp://audio2.example.com/Red5FlashAudio/flv:audio_stream" } ],
rtmp: {
bufferlength: 0.1
},
height: 360,
width: 640
}).play();

Thanks!

1 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

I am not sure what behavior you are seeing when the player fails or what your console might be saying but your code looks correct. Does the same behavior happen with streams hosted on say another website like an mp4?

Randy

This question has received the maximum number of answers.