A map of all audio tracks on this participant
A unique connection id generated every time a participant connects to a space
The unique participant id derived from the participant_id
field in the JWT
The role for this participant in the space. This can be one of ParticipantRole.Publisher or ParticipantRole.Subscriber
The status of this participant
use isSubscribed() instead
A map of all video tracks on this participant
getAudioTracks returns all audio tracks for a participant
a list of all RemoteTrack with kind audio
getTracks returns all (video and audio) tracks for a participant
getVideoTracks returns all video tracks for a participant
a list of all RemoteTrack with kind video
subscribes the LocalParticipant to this RemoteParticipant's media.
After this promise resolves you can expect to receive one SpaceEvent.ParticipantTrackSubscribed event to fire for each RemoteTrack that this participant has published to the space. Subsequent tracks that this participant publishes will be automatically subscribed to until unsubscribed is called.
NOTE: This function may only be called when SpaceOptions.subscriptionMode is set to SubscriptionMode.Manual.
unsubscribes the LocalParticipant from this RemoteParticipant's media.
After this promise resolves you can expect to receive one SpaceEvent.ParticipantTrackUnsubscribed event to fire for each RemoteTrack that this participant has published to the space.
NOTE: This function may only be called when SpaceOptions.subscriptionMode is set to SubscriptionMode.Manual.
Generated using TypeDoc
A RemoteParticipant is a remote peer connected to the space. While Remote Participant events are emitted on Space remote participants can also emit ParticipantEvent to give you more fine grained control.