Table of Contents

Class EncodedVideoChunk

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The EncodedVideoChunk interface of the 'WebCodecs API' represents a chunk of encoded video data.

[Value("EncodedVideoChunk")]
public class EncodedVideoChunk
Inheritance
EncodedVideoChunk
Inherited Members

Remarks

Constructors

EncodedVideoChunk()

public EncodedVideoChunk()

EncodedVideoChunk(EncodedVideoChunkInit)

The EncodedVideoChunk() constructor creates a new EncodedVideoChunk object representing a chunk of encoded video.

public EncodedVideoChunk(EncodedVideoChunkInit init)

Parameters

init EncodedVideoChunkInit

Remarks

Properties

ByteLength

The byteLength read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.

[Value("byteLength")]
public ulong ByteLength { get; }

Property Value

ulong

An integer.

Remarks

Duration

The duration read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.

[Value("duration")]
public ulong? Duration { get; }

Property Value

ulong?

An integer.

Remarks

Timestamp

The timestamp read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.

[Value("timestamp")]
public long Timestamp { get; }

Property Value

long

An integer.

Remarks

Type

The type read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.

[Value("type")]
public EncodedVideoChunkType Type { get; }

Property Value

EncodedVideoChunkType

A string, one of:

Remarks

Methods

CopyTo(Union225)

The copyTo() method of the EncodedVideoChunk interface copies the encoded chunk of video data.

[Value("copyTo")]
public GlobalObject.Undefined CopyTo(Union225 destination)

Parameters

destination Union225

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks