VideoFrame: duration プロパティ
duration
は VideoFrame
インターフェイスのプロパティで、動画の長さをマイクロ秒単位で表す整数を返します。
値
整数です。
例
次の例は duration
をコンソールに出力します。
js
console.log(VideoFrame.duration);
仕様書
Specification |
---|
WebCodecs # dom-videoframe-duration |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
duration |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.