Class Participant
- Namespace
- LiveKit.Rtc
- Assembly
- LivekitRtc.dll
Base class for participants in a room.
public abstract class Participant
- Inheritance
-
Participant
- Derived
- Inherited Members
Properties
Attributes
Participant attributes, as last reported by the server.
public IReadOnlyDictionary<string, string> Attributes { get; }
Property Value
DisconnectReason
Why the participant left, set before ParticipantDisconnected is raised.
public DisconnectReason DisconnectReason { get; }
Property Value
Identity
Participant identity.
public string Identity { get; }
Property Value
Kind
Kind of participant.
public ParticipantKind Kind { get; }
Property Value
Metadata
Participant metadata.
public string Metadata { get; }
Property Value
Name
Participant display name.
public string Name { get; }
Property Value
Permissions
The participant's permissions in the room, or null if the server has not sent them. Updated before ParticipantPermissionsChanged is raised.
public ParticipantPermission? Permissions { get; }
Property Value
Sid
Participant session ID.
public string Sid { get; }
Property Value
State
Connection state of the participant.
public ParticipantState State { get; }
Property Value
TrackPublications
Gets all track publications by this participant (a snapshot).
public IReadOnlyDictionary<string, TrackPublication> TrackPublications { get; }
Property Value
Methods
GetTrackPublication(string)
Gets a track publication by SID.
public TrackPublication? GetTrackPublication(string sid)
Parameters
sidstringTrack SID.
Returns
- TrackPublication
The track publication, or null if not found.