VideoFrame: duration プロパティ

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

整数です。

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

js
console.log(VideoFrame.duration);

仕様書

Specification
WebCodecs
# dom-videoframe-duration

ブラウザーの互換性

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
duration

Legend

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

Full support
Full support