Table of Contents

Class MediaSource

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll

Capture tracks directly from a room via SDK. Unifies deprecated Participant, TrackComposite, and Track egress.

public sealed class MediaSource : IMessage<MediaSource>, IEquatable<MediaSource>, IDeepCloneable<MediaSource>, IBufferMessage, IMessage
Inheritance
MediaSource
Implements
IMessage<MediaSource>
IDeepCloneable<MediaSource>
IBufferMessage
IMessage
Inherited Members

Constructors

MediaSource()

public MediaSource()

MediaSource(MediaSource)

public MediaSource(MediaSource other)

Parameters

other MediaSource

Fields

AudioFieldNumber

Field number for the "audio" field.

public const int AudioFieldNumber = 3

Field Value

int

DataFieldNumber

Field number for the "data" field.

public const int DataFieldNumber = 4

Field Value

int

ParticipantVideoFieldNumber

Field number for the "participant_video" field.

public const int ParticipantVideoFieldNumber = 2

Field Value

int

VideoTrackIdFieldNumber

Field number for the "video_track_id" field.

public const int VideoTrackIdFieldNumber = 1

Field Value

int

Properties

Audio

public AudioConfig Audio { get; set; }

Property Value

AudioConfig

Data

public DataConfig Data { get; set; }

Property Value

DataConfig

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasVideoTrackId

Gets whether the "video_track_id" field is set

public bool HasVideoTrackId { get; }

Property Value

bool

Parser

public static MessageParser<MediaSource> Parser { get; }

Property Value

MessageParser<MediaSource>

ParticipantVideo

public ParticipantVideo ParticipantVideo { get; set; }

Property Value

ParticipantVideo

VideoCase

public MediaSource.VideoOneofCase VideoCase { get; }

Property Value

MediaSource.VideoOneofCase

VideoTrackId

public string VideoTrackId { 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.

ClearVideo()

public void ClearVideo()

ClearVideoTrackId()

Clears the value of the oneof if it's currently set to "video_track_id"

public void ClearVideoTrackId()

Clone()

Creates a deep clone of this object.

public MediaSource Clone()

Returns

MediaSource

A deep clone of this object.

Equals(MediaSource)

public bool Equals(MediaSource other)

Parameters

other MediaSource

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

Merges the given message into this one.

public void MergeFrom(MediaSource other)

Parameters

other MediaSource

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.