Table of Contents

Class CaptureEncodedVideoFrameRequest

Namespace
LiveKit.Proto

Push one complete pre-encoded access unit to an encoded VideoSource.

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

Constructors

CaptureEncodedVideoFrameRequest()

public CaptureEncodedVideoFrameRequest()

CaptureEncodedVideoFrameRequest(CaptureEncodedVideoFrameRequest)

public CaptureEncodedVideoFrameRequest(CaptureEncodedVideoFrameRequest other)

Parameters

other CaptureEncodedVideoFrameRequest

Fields

BufferFieldNumber

Field number for the "buffer" field.

public const int BufferFieldNumber = 2

Field Value

int

CodecFieldNumber

Field number for the "codec" field.

public const int CodecFieldNumber = 3

Field Value

int

FrameTypeFieldNumber

Field number for the "frame_type" field.

public const int FrameTypeFieldNumber = 4

Field Value

int

HeightFieldNumber

Field number for the "height" field.

public const int HeightFieldNumber = 6

Field Value

int

MetadataFieldNumber

Field number for the "metadata" field.

public const int MetadataFieldNumber = 8

Field Value

int

SourceHandleFieldNumber

Field number for the "source_handle" field.

public const int SourceHandleFieldNumber = 1

Field Value

int

TimestampUsFieldNumber

Field number for the "timestamp_us" field.

public const int TimestampUsFieldNumber = 7

Field Value

int

WidthFieldNumber

Field number for the "width" field.

public const int WidthFieldNumber = 5

Field Value

int

Properties

Buffer

public EncodedVideoBufferInfo Buffer { get; set; }

Property Value

EncodedVideoBufferInfo

Codec

public VideoCodec Codec { get; set; }

Property Value

VideoCodec

Descriptor

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

Property Value

MessageDescriptor

FrameType

public EncodedFrameType FrameType { get; set; }

Property Value

EncodedFrameType

HasCodec

Gets whether the "codec" field is set

public bool HasCodec { get; }

Property Value

bool

HasFrameType

Gets whether the "frame_type" field is set

public bool HasFrameType { get; }

Property Value

bool

HasHeight

Gets whether the "height" field is set

public bool HasHeight { get; }

Property Value

bool

HasSourceHandle

Gets whether the "source_handle" field is set

public bool HasSourceHandle { get; }

Property Value

bool

HasTimestampUs

Gets whether the "timestamp_us" field is set

public bool HasTimestampUs { get; }

Property Value

bool

HasWidth

Gets whether the "width" field is set

public bool HasWidth { get; }

Property Value

bool

Height

public uint Height { get; set; }

Property Value

uint

Metadata

public FrameMetadata Metadata { get; set; }

Property Value

FrameMetadata

Parser

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

Property Value

MessageParser<CaptureEncodedVideoFrameRequest>

SourceHandle

public ulong SourceHandle { get; set; }

Property Value

ulong

TimestampUs

public long TimestampUs { get; set; }

Property Value

long

Width

public uint Width { get; set; }

Property Value

uint

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearCodec()

Clears the value of the "codec" field

public void ClearCodec()

ClearFrameType()

Clears the value of the "frame_type" field

public void ClearFrameType()

ClearHeight()

Clears the value of the "height" field

public void ClearHeight()

ClearSourceHandle()

Clears the value of the "source_handle" field

public void ClearSourceHandle()

ClearTimestampUs()

Clears the value of the "timestamp_us" field

public void ClearTimestampUs()

ClearWidth()

Clears the value of the "width" field

public void ClearWidth()

Clone()

public CaptureEncodedVideoFrameRequest Clone()

Returns

CaptureEncodedVideoFrameRequest

Equals(CaptureEncodedVideoFrameRequest)

public bool Equals(CaptureEncodedVideoFrameRequest other)

Parameters

other CaptureEncodedVideoFrameRequest

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

public void MergeFrom(CaptureEncodedVideoFrameRequest other)

Parameters

other CaptureEncodedVideoFrameRequest

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream