
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 ?
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 ?
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.
Thanks Alex
How can I display buffer usage in the console ?
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