A LocalParticipant is the local peer connected to the space. Local participants can emit ParticipantEvent to allow you to respond to state updates.
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
field in the JWT
The role for this participant in the space. This can be specified by the
role field in the JWT.
If none is specificed, the default is ParticipantRole.Publisher
A map of all video tracks on this participant
getAudioTracks returns all audio tracks for a participant
getVideoTracks returns all video tracks for a participant
unpublishAllTracks unpublishes all media for a LocalParticipant
unpublishTracks unpublishes a list of tracks from the space
updateTracks updates an array of LocalTrack based on TrackSource. This replaces the underlying media being sent to the space without the need to unpublish and republish tracks. This should be used with getDisplayMedia to update a camera or microphone input.
Note: If you pass a track source that isn't already published it will not be updated. For example, say you are publishing a Camera source but not a Microphone source. If you pass in a track with a source of TrackSource.Microphone nothing will happen.
all LocalTracks that were sucessfully updated
Generated using TypeDoc