Table of Contents

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

IReadOnlyDictionary<string, string>

DisconnectReason

Why the participant left, set before ParticipantDisconnected is raised.

public DisconnectReason DisconnectReason { get; }

Property Value

DisconnectReason

Identity

Participant identity.

public string Identity { get; }

Property Value

string

Kind

Kind of participant.

public ParticipantKind Kind { get; }

Property Value

ParticipantKind

Metadata

Participant metadata.

public string Metadata { get; }

Property Value

string

Name

Participant display name.

public string Name { get; }

Property Value

string

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

ParticipantPermission

Sid

Participant session ID.

public string Sid { get; }

Property Value

string

State

Connection state of the participant.

public ParticipantState State { get; }

Property Value

ParticipantState

TrackPublications

Gets all track publications by this participant (a snapshot).

public IReadOnlyDictionary<string, TrackPublication> TrackPublications { get; }

Property Value

IReadOnlyDictionary<string, TrackPublication>

Methods

GetTrackPublication(string)

Gets a track publication by SID.

public TrackPublication? GetTrackPublication(string sid)

Parameters

sid string

Track SID.

Returns

TrackPublication

The track publication, or null if not found.