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
PublisherIdentity
Identity of the participant who published the track.
public string PublisherIdentity { get; }
Property Value
Methods
IsPublished()
Whether or not the track is still published.
public bool IsPublished()
Returns
- bool
trueif the track is published;falseotherwise.
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
optionsDataTrackSubscribeOptionsOptions for the subscription, such as buffer size.
Returns
- DataTrackStream
A DataTrackStream for reading frames.