VideoFrame: duration プロパティ
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.
duration は VideoFrame インターフェイスのプロパティで、動画の長さをマイクロ秒単位で表す整数を返します。
値
整数です。
例
次の例は duration をコンソールに出力します。
js
console.log(VideoFrame.duration);
仕様書
| Specification |
|---|
| WebCodecs> # dom-videoframe-duration> |
ブラウザーの互換性
Loading…