EncodedVideoChunkInit Class

The description of an EncodedVideoChunk (https://w3c.github.io/webcodecs/#dictdef-encodedvideochunkinit).

public sealed class EncodedVideoChunkInit

Constructors

NameDescription
EncodedVideoChunkInit()

EncodedVideoChunkInit()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public EncodedVideoChunkInit()

No documentation is available.

Properties

NameDescription
DataGets the encoded bytes: a buffer source of the scripts, a Byte array or a memory of bytes.
DurationGets the presentation duration in microseconds, or null.
TimestampGets the presentation timestamp in microseconds.
TransferGets the ArrayBuffer objects detached by the construction.
TypeGets the type of the chunk.

Gets the encoded bytes: a buffer source of the scripts, a Byte array or a memory of bytes.

public required object Data { get; init; }

Gets the presentation duration in microseconds, or null.

public ulong? Duration { get; init; }

Gets the presentation timestamp in microseconds.

public required long Timestamp { get; init; }

Gets the ArrayBuffer objects detached by the construction.

public IReadOnlyList<object>? Transfer { get; init; }

Gets the type of the chunk.

public required EncodedVideoChunkType Type { get; init; }