Table of Contents

Class SIPMediaConfig

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

Constructors

SIPMediaConfig()

public SIPMediaConfig()

SIPMediaConfig(SIPMediaConfig)

public SIPMediaConfig(SIPMediaConfig other)

Parameters

other SIPMediaConfig

Fields

CodecsFieldNumber

Field number for the "codecs" field.

public const int CodecsFieldNumber = 2

Field Value

int

EncryptionFieldNumber

Field number for the "encryption" field.

public const int EncryptionFieldNumber = 3

Field Value

int

MediaTimeoutFieldNumber

Field number for the "media_timeout" field.

public const int MediaTimeoutFieldNumber = 4

Field Value

int

OnlyListedCodecsFieldNumber

Field number for the "only_listed_codecs" field.

public const int OnlyListedCodecsFieldNumber = 1

Field Value

int

Properties

Codecs

List of allowed codecs. If only_listed_codecs is not set, this list is added to default codecs.

public RepeatedField<SIPCodec> Codecs { get; }

Property Value

RepeatedField<SIPCodec>

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Encryption

public SIPMediaEncryption Encryption { get; set; }

Property Value

SIPMediaEncryption

HasEncryption

Gets whether the "encryption" field is set

public bool HasEncryption { get; }

Property Value

bool

MediaTimeout

Use specific media timeout. If zero or not specified, will use default timeout.

public Duration MediaTimeout { get; set; }

Property Value

Duration

OnlyListedCodecs

if set, ignore the default codecs and use the list below.

public bool OnlyListedCodecs { get; set; }

Property Value

bool

Parser

public static MessageParser<SIPMediaConfig> Parser { get; }

Property Value

MessageParser<SIPMediaConfig>

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.

ClearEncryption()

Clears the value of the "encryption" field

public void ClearEncryption()

Clone()

Creates a deep clone of this object.

public SIPMediaConfig Clone()

Returns

SIPMediaConfig

A deep clone of this object.

Equals(SIPMediaConfig)

public bool Equals(SIPMediaConfig other)

Parameters

other SIPMediaConfig

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

Merges the given message into this one.

public void MergeFrom(SIPMediaConfig other)

Parameters

other SIPMediaConfig

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.