EncodedVideoChunk: timestamp-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 schreibgeschützte Eigenschaft timestamp des EncodedVideoChunk-Interfaces gibt eine ganze Zahl zurück, die den Zeitstempel des Videos in Mikrosekunden angibt.

Wert

Eine ganze Zahl.

Beispiele

Im folgenden Beispiel wird der timestamp in die Konsole ausgegeben.

js
const init = {
  type: "key",
  data: videoBuffer,
  timestamp: 23000000,
  duration: 2000000,
};
chunk = EncodedVideoChunk(init);
console.log(chunk.timestamp); //23000000

Spezifikationen

Specification
WebCodecs
# dom-encodedvideochunk-timestamp

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
timestamp

Legend

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

Full support
Full support
No support
No support