Table of Contents

Class SessionDescription

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

Constructors

SessionDescription()

public SessionDescription()

SessionDescription(SessionDescription)

public SessionDescription(SessionDescription other)

Parameters

other SessionDescription

Fields

IdFieldNumber

Field number for the "id" field.

public const int IdFieldNumber = 3

Field Value

int

MidToTrackIdFieldNumber

Field number for the "mid_to_track_id" field.

public const int MidToTrackIdFieldNumber = 4

Field Value

int

SdpFieldNumber

Field number for the "sdp" field.

public const int SdpFieldNumber = 2

Field Value

int

TypeFieldNumber

Field number for the "type" field.

public const int TypeFieldNumber = 1

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Id

public uint Id { get; set; }

Property Value

uint

MidToTrackId

public MapField<string, string> MidToTrackId { get; }

Property Value

MapField<string, string>

Parser

public static MessageParser<SessionDescription> Parser { get; }

Property Value

MessageParser<SessionDescription>

Sdp

public string Sdp { get; set; }

Property Value

string

Type

"answer" | "offer" | "pranswer" | "rollback"

public string Type { 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 SessionDescription Clone()

Returns

SessionDescription

A deep clone of this object.

Equals(SessionDescription)

public bool Equals(SessionDescription other)

Parameters

other SessionDescription

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

Merges the given message into this one.

public void MergeFrom(SessionDescription other)

Parameters

other SessionDescription

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.