SpaceEvent
Events that are emitted by a Space instance.
Enumeration Members
AudioInitialized
When the audio renderer is ready.
Value
audioInitializedAudioObjectAdded
A new audio object has been added to the space.
Value
audioObjectAddedAudioObjectRemoved
An audio object has been removed from the space.
Value
audioObjectRemovedLocalTrackPublished
A local track was published successfully. This event is helpful to know
when to update your local UI with the newly published track.
Value
localTrackPublishedLocalTrackUnpublished
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.
Value
localTrackUnpublishedParticipantConnected
When a RemoteParticipant joins after the local
participant. It will not emit events for participants that are already
in the room
Provides: (RemoteParticipant, Room)
Value
participantConnectedParticipantDisconnected
When a RemoteParticipant leaves after the local
participant has joined.
Provides: (RemoteParticipant, Room)
Value
participantDisconnectedRoomAdded
RoomConnected
RoomDisconnected
When disconnected from room. This fires when room.disconnect() is called or
when an unrecoverable connection issue had occured
Provides: (Room)
Value
roomDisconnectedRoomReconnected
RoomReconnecting
When the connection to the server has been interrupted and it's attempting
to reconnect.
Provides: (Room)
Value
roomReconnectingRoomRemoved
VideoPublished
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.
Value
videoPublishedVideoSubscribed
The LocalParticipant has subscribed to a new video track. This event will always
fire as long as new video tracks are ready for use.
Value
videoSubscribedVideoSubscriptionFailed
Could not subscribe to a video track
Provides: (track sid, RemoteParticipant)
Value
videoSubscriptionFailedVideoUnpublished
A RemoteParticipant has unpublished a video track
Provides: (RemoteTrackPublication, RemoteParticipant)
Value
videoUnpublishedVideoUnsubscribed
A subscribed video track is no longer available. Clients should listen to this
event and ensure they detach tracks.
Value
videoUnsubscribed