Skip to content

Class: RemoteParticipant ​

Constructors ​

Constructor ​

ts
new RemoteParticipant(info, tracksFor): RemoteParticipant;

Parameters ​

ParameterType
infoParticipantInfo
tracksFor(identity) => Track[]

Returns ​

RemoteParticipant

Accessors ​

audioTrack ​

Get Signature ​

ts
get audioTrack(): Track | null;
Returns ​

Track | null


displayName ​

Get Signature ​

ts
get displayName(): string;
Returns ​

string


identity ​

Get Signature ​

ts
get identity(): string;
Returns ​

string


kind ​

Get Signature ​

ts
get kind(): ParticipantKind;
Returns ​

ParticipantKind


metadata ​

Get Signature ​

ts
get metadata(): Record<string, unknown>;

Tenant meaning travels here and nowhere else. The platform never reads it, and neither does this SDK.

Returns ​

Record<string, unknown>


publications ​

Get Signature ​

ts
get publications(): TrackInfo[];
Returns ​

TrackInfo[]


raw ​

Get Signature ​

ts
get raw(): ParticipantInfo;
Returns ​

ParticipantInfo


sid ​

Get Signature ​

ts
get sid(): string;
Returns ​

string


state ​

Get Signature ​

ts
get state(): ParticipantState;
Returns ​

ParticipantState


tracks ​

Get Signature ​

ts
get tracks(): Track[];

The tracks actually arriving, which in a p2p room is what ontrack produced — there are no TrackPublished events to correlate with, because a p2p room has no PublishTrack.

Returns ​

Track[]


videoTrack ​

Get Signature ​

ts
get videoTrack(): Track | null;
Returns ​

Track | null

Talkline documentation