Table of Contents

Class TrackPublishOptions

Namespace
LiveKit.Proto
public sealed class TrackPublishOptions : Google.Protobuf.IMessage<TrackPublishOptions>, Google.Protobuf.IBufferMessage
Inheritance
TrackPublishOptions
Implements
IBufferMessage
Extension Methods

Constructors

TrackPublishOptions()

public TrackPublishOptions()

TrackPublishOptions(TrackPublishOptions)

public TrackPublishOptions(TrackPublishOptions other)

Parameters

other TrackPublishOptions

Fields

AudioEncodingFieldNumber

Field number for the "audio_encoding" field.

public const int AudioEncodingFieldNumber = 2

Field Value

int

DtxFieldNumber

Field number for the "dtx" field.

public const int DtxFieldNumber = 4

Field Value

int

PreconnectBufferFieldNumber

Field number for the "preconnect_buffer" field.

public const int PreconnectBufferFieldNumber = 9

Field Value

int

RedFieldNumber

Field number for the "red" field.

public const int RedFieldNumber = 5

Field Value

int

SimulcastFieldNumber

Field number for the "simulcast" field.

public const int SimulcastFieldNumber = 6

Field Value

int

SourceFieldNumber

Field number for the "source" field.

public const int SourceFieldNumber = 7

Field Value

int

StreamFieldNumber

Field number for the "stream" field.

public const int StreamFieldNumber = 8

Field Value

int

VideoCodecFieldNumber

Field number for the "video_codec" field.

public const int VideoCodecFieldNumber = 3

Field Value

int

VideoEncodingFieldNumber

Field number for the "video_encoding" field.

public const int VideoEncodingFieldNumber = 1

Field Value

int

Properties

AudioEncoding

public AudioEncoding AudioEncoding { get; set; }

Property Value

AudioEncoding

Descriptor

public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Dtx

public bool Dtx { get; set; }

Property Value

bool

HasDtx

Gets whether the "dtx" field is set

public bool HasDtx { get; }

Property Value

bool

HasPreconnectBuffer

Gets whether the "preconnect_buffer" field is set

public bool HasPreconnectBuffer { get; }

Property Value

bool

HasRed

Gets whether the "red" field is set

public bool HasRed { get; }

Property Value

bool

HasSimulcast

Gets whether the "simulcast" field is set

public bool HasSimulcast { get; }

Property Value

bool

HasSource

Gets whether the "source" field is set

public bool HasSource { get; }

Property Value

bool

HasStream

Gets whether the "stream" field is set

public bool HasStream { get; }

Property Value

bool

HasVideoCodec

Gets whether the "video_codec" field is set

public bool HasVideoCodec { get; }

Property Value

bool

Parser

public static Google.Protobuf.MessageParser<TrackPublishOptions> Parser { get; }

Property Value

MessageParser<TrackPublishOptions>

PreconnectBuffer

public bool PreconnectBuffer { get; set; }

Property Value

bool

Red

public bool Red { get; set; }

Property Value

bool

Simulcast

public bool Simulcast { get; set; }

Property Value

bool

Source

public TrackSource Source { get; set; }

Property Value

TrackSource

Stream

public string Stream { get; set; }

Property Value

string

VideoCodec

public VideoCodec VideoCodec { get; set; }

Property Value

VideoCodec

VideoEncoding

encodings are optional

public VideoEncoding VideoEncoding { get; set; }

Property Value

VideoEncoding

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearDtx()

Clears the value of the "dtx" field

public void ClearDtx()

ClearPreconnectBuffer()

Clears the value of the "preconnect_buffer" field

public void ClearPreconnectBuffer()

ClearRed()

Clears the value of the "red" field

public void ClearRed()

ClearSimulcast()

Clears the value of the "simulcast" field

public void ClearSimulcast()

ClearSource()

Clears the value of the "source" field

public void ClearSource()

ClearStream()

Clears the value of the "stream" field

public void ClearStream()

ClearVideoCodec()

Clears the value of the "video_codec" field

public void ClearVideoCodec()

Clone()

public TrackPublishOptions Clone()

Returns

TrackPublishOptions

Equals(TrackPublishOptions)

public bool Equals(TrackPublishOptions other)

Parameters

other TrackPublishOptions

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

public void MergeFrom(Google.Protobuf.CodedInputStream input)

Parameters

input CodedInputStream

MergeFrom(TrackPublishOptions)

public void MergeFrom(TrackPublishOptions other)

Parameters

other TrackPublishOptions

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream