how can I avoid stream disconnect

Dani

Member
in case of steam issues - how can I avoid stream disconnect ?
if I get the STREAM FAILED event - can I ignore it (for example for 3 times) and if the stream is still ok it will keep working ?
if the stream is not good will I get more events of STREAM FAILED ?
 

Max

Administrator
Staff member
Good day.
in case of steam issues - how can I avoid stream disconnect ?
if I get the STREAM FAILED event - can I ignore it (for example for 3 times) and if the stream is still ok it will keep working ?
You can resume stream playback on client side as described here
if the stream is not good will I get more events of STREAM FAILED ?
Yes, you will receive STREAM_STATUS.FAILED when stream is stopped by some failure or if there is no such stream on server.
 

Dani

Member
Hi - I see the code recall the playStream() function that creates a "new stream" - is that the method ? this stream will have new id ?
 

Max

Administrator
Staff member
Hi - I see the code recall the playStream() function that creates a "new stream" - is that the method ? this stream will have new id ?
Yes, if a stream changed its state from PLAYING to some other state, the new Stream object should be created to play the stream with the same name. WebRTC connection is unique for every Stream object.
 
Top