ImageTrack: frameCount property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The **frameCount** property of the {{domxref("ImageTrack")}} interface returns the number of frames in the track.
Value
An integer.
Examples
The following example prints the value of frameCount to the console.
js
let track = imageDecoder.tracks.selectedTrack;
console.log(track.frameCount);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}