Table of Contents

Class TrackInfo

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

Constructors

TrackInfo()

public TrackInfo()

TrackInfo(TrackInfo)

public TrackInfo(TrackInfo other)

Parameters

other TrackInfo

Fields

AudioFeaturesFieldNumber

Field number for the "audio_features" field.

public const int AudioFeaturesFieldNumber = 19

Field Value

int

BackupCodecPolicyFieldNumber

Field number for the "backup_codec_policy" field.

public const int BackupCodecPolicyFieldNumber = 20

Field Value

int

CodecsFieldNumber

Field number for the "codecs" field.

public const int CodecsFieldNumber = 13

Field Value

int

DisableDtxFieldNumber

Field number for the "disable_dtx" field.

public const int DisableDtxFieldNumber = 8

Field Value

int

DisableRedFieldNumber

Field number for the "disable_red" field.

public const int DisableRedFieldNumber = 15

Field Value

int

EncryptionFieldNumber

Field number for the "encryption" field.

public const int EncryptionFieldNumber = 16

Field Value

int

HeightFieldNumber

Field number for the "height" field.

public const int HeightFieldNumber = 6

Field Value

int

LayersFieldNumber

Field number for the "layers" field.

public const int LayersFieldNumber = 10

Field Value

int

MidFieldNumber

Field number for the "mid" field.

public const int MidFieldNumber = 12

Field Value

int

MimeTypeFieldNumber

Field number for the "mime_type" field.

public const int MimeTypeFieldNumber = 11

Field Value

int

MutedFieldNumber

Field number for the "muted" field.

public const int MutedFieldNumber = 4

Field Value

int

NameFieldNumber

Field number for the "name" field.

public const int NameFieldNumber = 3

Field Value

int

PacketTrailerFeaturesFieldNumber

Field number for the "packet_trailer_features" field.

public const int PacketTrailerFeaturesFieldNumber = 21

Field Value

int

SidFieldNumber

Field number for the "sid" field.

public const int SidFieldNumber = 1

Field Value

int

SimulcastFieldNumber

Field number for the "simulcast" field.

public const int SimulcastFieldNumber = 7

Field Value

int

SourceFieldNumber

Field number for the "source" field.

public const int SourceFieldNumber = 9

Field Value

int

StereoFieldNumber

Field number for the "stereo" field.

public const int StereoFieldNumber = 14

Field Value

int

StreamFieldNumber

Field number for the "stream" field.

public const int StreamFieldNumber = 17

Field Value

int

TypeFieldNumber

Field number for the "type" field.

public const int TypeFieldNumber = 2

Field Value

int

VersionFieldNumber

Field number for the "version" field.

public const int VersionFieldNumber = 18

Field Value

int

WidthFieldNumber

Field number for the "width" field.

public const int WidthFieldNumber = 5

Field Value

int

Properties

AudioFeatures

public RepeatedField<AudioTrackFeature> AudioFeatures { get; }

Property Value

RepeatedField<AudioTrackFeature>

BackupCodecPolicy

public BackupCodecPolicy BackupCodecPolicy { get; set; }

Property Value

BackupCodecPolicy

Codecs

public RepeatedField<SimulcastCodecInfo> Codecs { get; }

Property Value

RepeatedField<SimulcastCodecInfo>

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

DisableDtx

true if DTX (Discontinuous Transmission) is disabled for audio

[Obsolete]
public bool DisableDtx { get; set; }

Property Value

bool

DisableRed

true if RED (Redundant Encoding) is disabled for audio

public bool DisableRed { get; set; }

Property Value

bool

Encryption

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

Property Value

Encryption.Types.Type

Height

original height of video (unset for audio)

public uint Height { get; set; }

Property Value

uint

Layers

see codecs for layers of individual codec

[Obsolete]
public RepeatedField<VideoLayer> Layers { get; }

Property Value

RepeatedField<VideoLayer>

Mid

public string Mid { get; set; }

Property Value

string

MimeType

mime type of codec

public string MimeType { get; set; }

Property Value

string

Muted

public bool Muted { get; set; }

Property Value

bool

Name

public string Name { get; set; }

Property Value

string

PacketTrailerFeatures

public RepeatedField<PacketTrailerFeature> PacketTrailerFeatures { get; }

Property Value

RepeatedField<PacketTrailerFeature>

Parser

public static MessageParser<TrackInfo> Parser { get; }

Property Value

MessageParser<TrackInfo>

Sid

public string Sid { get; set; }

Property Value

string

Simulcast

true if track is simulcasted

[Obsolete]
public bool Simulcast { get; set; }

Property Value

bool

Source

source of media

public TrackSource Source { get; set; }

Property Value

TrackSource

Stereo

deprecated in favor of audio_features

[Obsolete]
public bool Stereo { get; set; }

Property Value

bool

Stream

public string Stream { get; set; }

Property Value

string

Type

public TrackType Type { get; set; }

Property Value

TrackType

Version

public TimedVersion Version { get; set; }

Property Value

TimedVersion

Width

original width of video (unset for audio) clients may receive a lower resolution version with simulcast

public uint Width { get; set; }

Property Value

uint

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 TrackInfo Clone()

Returns

TrackInfo

A deep clone of this object.

Equals(TrackInfo)

public bool Equals(TrackInfo other)

Parameters

other TrackInfo

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

Merges the given message into this one.

public void MergeFrom(TrackInfo other)

Parameters

other TrackInfo

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.