Class LocalDataTrack
- Namespace
- LiveKit.Rtc
- Assembly
- LivekitRtc.dll
A data track published by the local participant. Obtained from PublishDataTrackAsync(string, CancellationToken).
public class LocalDataTrack : IDisposable
- Inheritance
-
LocalDataTrack
- Implements
- Inherited Members
Properties
Info
Information about the data track.
public DataTrackInfo Info { get; }
Property Value
Methods
Dispose()
Releases the native handle of the track, which also unpublishes it if it is still published.
public void Dispose()
IsPublished()
Whether the track is still published.
public bool IsPublished()
Returns
- bool
True while the track is published.
TryPush(DataTrackFrame)
Tries to push a frame to the subscribers of the track.
public void TryPush(DataTrackFrame frame)
Parameters
frameDataTrackFrameThe frame to send.
Exceptions
- PushFrameException
The frame could not be pushed.
Unpublish()
Unpublishes the track.
public void Unpublish()