Class EncodedAudioChunk
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The EncodedAudioChunk interface of the 'WebCodecs API' represents a chunk of encoded audio data.
[Value("EncodedAudioChunk")]
public class EncodedAudioChunk
- Inheritance
-
EncodedAudioChunk
- Inherited Members
Remarks
Constructors
EncodedAudioChunk()
public EncodedAudioChunk()
EncodedAudioChunk(EncodedAudioChunkInit)
The EncodedAudioChunk() constructor creates a new EncodedAudioChunk object representing a chunk of encoded audio.
public EncodedAudioChunk(EncodedAudioChunkInit init)
Parameters
Remarks
Properties
ByteLength
The byteLength read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.
[Value("byteLength")]
public ulong ByteLength { get; }
Property Value
- ulong
An integer.
Remarks
Duration
The duration read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.
[Value("duration")]
public ulong? Duration { get; }
Property Value
- ulong?
An integer.
Remarks
Timestamp
The timestamp read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.
[Value("timestamp")]
public long Timestamp { get; }
Property Value
- long
An integer.
Remarks
Type
The type read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.
[Value("type")]
public EncodedAudioChunkType Type { get; }
Property Value
- EncodedAudioChunkType
A string, one of:
Remarks
Methods
CopyTo(Union225)
The copyTo() method of the EncodedAudioChunk interface copies the encoded chunk of audio data.
[Value("copyTo")]
public GlobalObject.Undefined CopyTo(Union225 destination)
Parameters
destinationUnion225