EncodedAudioChunk: byteLength-Eigenschaft

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Hinweis: Diese Funktion ist in Dedicated Web Workers verfügbar.

Die byteLength schreibgeschützte Eigenschaft des EncodedAudioChunk-Interfaces gibt die Länge der kodierten Audiodaten in Bytes zurück.

Wert

Ein Integer.

Beispiele

Im folgenden Beispiel wird byteLength in der Konsole ausgegeben.

js
const init = {
  type: "key",
  data: audioBuffer,
  timestamp: 23000000,
  duration: 2000000,
};
chunk = EncodedAudioChunk(init);

console.log(chunk.byteLength); //352800

Spezifikationen

Specification
WebCodecs
# dom-encodedaudiochunk-bytelength

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
byteLength

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support