このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

VideoFrame: timestamp プロパティ

Baseline 2024
Newly available

Since ⁨September 2024⁩, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

timestampVideoFrame インターフェイスのプロパティで、動画のタイムスタンプをマイクロ秒単位で表す整数を返します。

整数です。

次の例は timestamp をコンソールに出力します。

js
console.log(VideoFrame.timestamp);

仕様書

Specification
WebCodecs
# dom-videoframe-timestamp

ブラウザーの互換性