Table of Contents

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

DataTrackInfo

Methods

IsPublished()

Whether or not the track is still published.

public bool IsPublished()

Returns

bool

true if the track is published; false otherwise.

TryPush(DataTrackFrame)

Try pushing a frame to subscribers of the track.

public void TryPush(DataTrackFrame frame)

Parameters

frame DataTrackFrame

The 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()