Table of Contents

Class RemoteDataTrack

Namespace
LiveKit

Data track published by a remote participant.

public sealed class RemoteDataTrack
Inheritance
RemoteDataTrack
Inherited Members
Extension Methods

Properties

Info

Information about the data track.

public DataTrackInfo Info { get; }

Property Value

DataTrackInfo

PublisherIdentity

Identity of the participant who published the track.

public string PublisherIdentity { get; }

Property Value

string

Methods

IsPublished()

Whether or not the track is still published.

public bool IsPublished()

Returns

bool

true if the track is published; false otherwise.

Subscribe()

Subscribes to the data track to receive frames using default options.

public DataTrackStream Subscribe()

Returns

DataTrackStream

A DataTrackStream for reading frames.

Remarks

Use the Subscribe(DataTrackSubscribeOptions) overload to configure subscription options.

Subscribe(DataTrackSubscribeOptions)

Subscribes to the data track to receive frames.

public DataTrackStream Subscribe(DataTrackSubscribeOptions options)

Parameters

options DataTrackSubscribeOptions

Options for the subscription, such as buffer size.

Returns

DataTrackStream

A DataTrackStream for reading frames.