StreamStatusEvent 'failed' after 'playing'

SLM

Member
When a visitor refreshes his browser the streaming session will be reestablished and streaming will continue. However, in our logs we get a StreamStatusEvent with status "Playing" before the StreamStatusEvent with status "failed" of the previous session. Is this a bug or intentional?

On both events we execute certain procedures on another server, but because the old session is closed after the new session has started playing, this interferes with these procedures.
 

Max

Administrator
Staff member
Hello

This is normal behavior.
Each playback session has unique mediaSessionId and session is being terminated asynchronously.
So to avoid interference you have to distinguish sessions by mediaSessionId not by streamName.

Regarding mediaSessionId, this parameter is available either on Web SDK or on REST Hooks /playStream
 
Top