Table of Contents

Class DataTrackInfo

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public sealed class DataTrackInfo : IMessage<DataTrackInfo>, IEquatable<DataTrackInfo>, IDeepCloneable<DataTrackInfo>, IBufferMessage, IMessage
Inheritance
DataTrackInfo
Implements
IMessage<DataTrackInfo>
IDeepCloneable<DataTrackInfo>
IBufferMessage
IMessage
Inherited Members

Constructors

DataTrackInfo()

public DataTrackInfo()

DataTrackInfo(DataTrackInfo)

public DataTrackInfo(DataTrackInfo other)

Parameters

other DataTrackInfo

Fields

EncryptionFieldNumber

Field number for the "encryption" field.

public const int EncryptionFieldNumber = 4

Field Value

int

NameFieldNumber

Field number for the "name" field.

public const int NameFieldNumber = 3

Field Value

int

PubHandleFieldNumber

Field number for the "pub_handle" field.

public const int PubHandleFieldNumber = 1

Field Value

int

SidFieldNumber

Field number for the "sid" field.

public const int SidFieldNumber = 2

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Encryption

Method used for end-to-end encryption (E2EE) on packet payloads.

public Encryption.Types.Type Encryption { get; set; }

Property Value

Encryption.Types.Type

Name

Human-readable identifier (e.g., geoLocation, servoPosition.x, etc.), unique per publisher.

public string Name { get; set; }

Property Value

string

Parser

public static MessageParser<DataTrackInfo> Parser { get; }

Property Value

MessageParser<DataTrackInfo>

PubHandle

Client-assigned, 16-bit identifier that will be attached to packets sent by the publisher.

public uint PubHandle { get; set; }

Property Value

uint

Sid

Server-assigned track identifier.

public string Sid { get; set; }

Property Value

string

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

Clone()

Creates a deep clone of this object.

public DataTrackInfo Clone()

Returns

DataTrackInfo

A deep clone of this object.

Equals(DataTrackInfo)

public bool Equals(DataTrackInfo other)

Parameters

other DataTrackInfo

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(DataTrackInfo)

Merges the given message into this one.

public void MergeFrom(DataTrackInfo other)

Parameters

other DataTrackInfo

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.