Table of Contents

Class GstreamerRateControl

Namespace
LiveKit.Proto

Binding from WebRTC rate-control targets to a GStreamer encoder property.

public sealed class GstreamerRateControl : Google.Protobuf.IMessage<GstreamerRateControl>, Google.Protobuf.IBufferMessage
Inheritance
GstreamerRateControl
Implements
IBufferMessage
Extension Methods

Constructors

GstreamerRateControl()

public GstreamerRateControl()

GstreamerRateControl(GstreamerRateControl)

public GstreamerRateControl(GstreamerRateControl other)

Parameters

other GstreamerRateControl

Fields

ElementFieldNumber

Field number for the "element" field.

public const int ElementFieldNumber = 1

Field Value

int

PropertyFieldNumber

Field number for the "property" field.

public const int PropertyFieldNumber = 2

Field Value

int

UnitFieldNumber

Field number for the "unit" field.

public const int UnitFieldNumber = 3

Field Value

int

Properties

Descriptor

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

Property Value

MessageDescriptor

Element

Name of the encoder element in the pipeline (e.g. lk_encoder).

public string Element { get; set; }

Property Value

string

HasElement

Gets whether the "element" field is set

public bool HasElement { get; }

Property Value

bool

HasProperty

Gets whether the "property" field is set

public bool HasProperty { get; }

Property Value

bool

HasUnit

Gets whether the "unit" field is set

public bool HasUnit { get; }

Property Value

bool

Parser

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

Property Value

MessageParser<GstreamerRateControl>

Property

Bitrate property to set on the element (e.g. bitrate for x264enc, target-bitrate for vp8enc/vp9enc).

public string Property { get; set; }

Property Value

string

Unit

Unit the property expects.

public GstreamerBitrateUnit Unit { get; set; }

Property Value

GstreamerBitrateUnit

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearElement()

Clears the value of the "element" field

public void ClearElement()

ClearProperty()

Clears the value of the "property" field

public void ClearProperty()

ClearUnit()

Clears the value of the "unit" field

public void ClearUnit()

Clone()

public GstreamerRateControl Clone()

Returns

GstreamerRateControl

Equals(GstreamerRateControl)

public bool Equals(GstreamerRateControl other)

Parameters

other GstreamerRateControl

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

public void MergeFrom(GstreamerRateControl other)

Parameters

other GstreamerRateControl

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream