EncodedAudioChunkInit Class

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

public sealed class EncodedAudioChunkInit

Constructors

NameDescription
EncodedAudioChunkInit()

EncodedAudioChunkInit()

  • 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 EncodedAudioChunkInit()

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 EncodedAudioChunkType Type { get; init; }