EncodedAudioChunk
Limited availability
The EncodedAudioChunk
interface of the WebCodecs API represents a chunk of encoded audio data.
Constructor
-
EncodedAudioChunk()
Experimental
-
Creates a new EncodedAudioChunk
object.
Instance properties
-
EncodedAudioChunk.type
Read only Experimental
-
Returns a string indicating whether this chunk of data is a key chunk.
-
EncodedAudioChunk.timestamp
Read only Experimental
-
Returns an integer representing the timestamp of the audio in microseconds.
-
EncodedAudioChunk.duration
Read only Experimental
-
Returns an integer representing the duration of the audio in microseconds.
-
EncodedAudioChunk.byteLength
Read only Experimental
-
Returns an integer representing the length of the audio in bytes.
Instance methods
-
EncodedAudioChunk.copyTo()
Experimental
-
Copies the encoded audio data.
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Opera |
Safari |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
WebView Android |
EncodedAudioChunk |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |
EncodedAudioChunk |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |
byteLength |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |
copyTo |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |
duration |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |
timestamp |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |
type |
94 |
94 |
No |
80 |
No |
94 |
No |
66 |
No |
17.0 |
94 |