Table of Contents

Class NewVideoSourceRequest

Namespace
LiveKit.Proto

Create a new VideoSource VideoSource is used to send video frame to a track

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

Constructors

NewVideoSourceRequest()

public NewVideoSourceRequest()

NewVideoSourceRequest(NewVideoSourceRequest)

public NewVideoSourceRequest(NewVideoSourceRequest other)

Parameters

other NewVideoSourceRequest

Fields

IsScreencastFieldNumber

Field number for the "is_screencast" field.

public const int IsScreencastFieldNumber = 3

Field Value

int

ResolutionFieldNumber

Field number for the "resolution" field.

public const int ResolutionFieldNumber = 2

Field Value

int

TypeFieldNumber

Field number for the "type" field.

public const int TypeFieldNumber = 1

Field Value

int

Properties

Descriptor

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

Property Value

MessageDescriptor

HasIsScreencast

Gets whether the "is_screencast" field is set

public bool HasIsScreencast { get; }

Property Value

bool

HasType

Gets whether the "type" field is set

public bool HasType { get; }

Property Value

bool

IsScreencast

public bool IsScreencast { get; set; }

Property Value

bool

Parser

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

Property Value

MessageParser<NewVideoSourceRequest>

Resolution

Used to determine which encodings to use + simulcast layers Most of the time it corresponds to the source resolution

public VideoSourceResolution Resolution { get; set; }

Property Value

VideoSourceResolution

Type

public VideoSourceType Type { get; set; }

Property Value

VideoSourceType

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearIsScreencast()

Clears the value of the "is_screencast" field

public void ClearIsScreencast()

ClearType()

Clears the value of the "type" field

public void ClearType()

Clone()

public NewVideoSourceRequest Clone()

Returns

NewVideoSourceRequest

Equals(NewVideoSourceRequest)

public bool Equals(NewVideoSourceRequest other)

Parameters

other NewVideoSourceRequest

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

public void MergeFrom(NewVideoSourceRequest other)

Parameters

other NewVideoSourceRequest

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream