Class LocalDataTrack
- Namespace
- LiveKit
Data track published by the local participant.
public sealed class LocalDataTrack
- Inheritance
-
LocalDataTrack
- Inherited Members
- Extension Methods
Properties
Info
Information about the data track.
public DataTrackInfo Info { get; }
Property Value
Methods
IsPublished()
Whether or not the track is still published.
public bool IsPublished()
Returns
- bool
trueif the track is published;falseotherwise.
TryPush(DataTrackFrame)
Try pushing a frame to subscribers of the track.
public void TryPush(DataTrackFrame frame)
Parameters
frameDataTrackFrameThe data track frame to send.
Remarks
See DataTrackFrame for how to construct a frame and attach metadata.
Exceptions
- PushFrameError
Thrown if the push fails.
Unpublish()
Unpublishes the track.
public void Unpublish()