Events
Once the client application has successfully initiated a connection, the connector object would emit different events to indicate various activities in the live session.
Last updated
Was this helpful?
Once the client application has successfully initiated a connection, the connector object would emit different events to indicate various activities in the live session.
Last updated
Was this helpful?
WebRTCai.events.publisher
Whenever a new publisher successfully starts publishing a new stream this event would be fired. A separate event would be fired for each (e.g. Webcam & Screen share). Client application can listen on this event to to this new publisher.
WebRTCai.events.publisherLeft
Whenever an existing publisher stops publishing their media stream this event would be fired. Client application can listen on this event to detach the stream.
WebRTCai.events.reconnecting
Whenever the connection to the server breaks down, this event would be fired. The SDK would try to re-establish the connection periodically with increasing time delays.
WebRTCai.events.reconnected
Whenever the connection to the server breaks down and re-establishes, this event would be fired. The SDK would try to re-create the state of the session before it was disconnected.
WebRTCai.events.disconected
Whenever the client application initiates a disconnect method on the sessionObject.