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

RTMP backup stream from another Wowza


Is it possible to code JW 7 free to switch to another RTMP live stream in the event that the first stream fails due to wowza server fault or loss of stream ? Maybe 0 buffer ?

3 Community Answers

Alex

JW Player Support Agent  
0 rated :

It would all depend on how the stream behaves when the stream fails. Some streams cause the player to fire an error – in which case you can use the .on(‘error)’ event handler to load a new stream. Others will just continue buffering forever in which case you may check how long the player has been buffering before it starts playing the stream and if it is too long, then you can load a new stream.

g...

User  
0 rated :

Thanks Alex

How can I display buffer usage in the console ?

Alex

JW Player Support Agent  
0 rated :

If you are looking to get the amount of buffer for an on-demand stream, you should be able to use .getBuffer().

https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/#buffer

This question has received the maximum number of answers.