Events that are emitted by a Space instance.
When the audio renderer is ready.
A new audio object has been added to the space.
An audio object has been removed from the space.
A local track was published successfully. This event is helpful to know when to update your local UI with the newly published track.
A local track was unpublished. This event is helpful to know when to remove the local track from your UI.
When a user stops sharing their screen by pressing "End" on the browser UI, this event will also fire.
When a RemoteParticipant joins after the local participant. It will not emit events for participants that are already in the room
When a RemoteParticipant leaves after the local participant has joined.
When a new room is added to the space.
When the connection to the server has been established
When disconnected from room. This fires when room.disconnect() is called or when an unrecoverable connection issue had occured
Fires when a reconnection has been successful.
When the connection to the server has been interrupted and it's attempting to reconnect.
When a room is removed from the space.
When a new video track is published to room after the local participant has joined. It will not fire for video tracks that are already published.
A video track published doesn't mean the participant has subscribed to it. It's simply reflecting the state of the room.
The LocalParticipant has subscribed to a new video track. This event will always fire as long as new video tracks are ready for use.
Could not subscribe to a video track
Provides: (track sid, RemoteParticipant)
A RemoteParticipant has unpublished a video track
A subscribed video track is no longer available. Clients should listen to this event and ensure they detach tracks.