ImageTrack
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The **ImageTrack** interface of the {{domxref('WebCodecs API','','','true')}} represents an individual image track.
{{InheritanceDiagram}}
Instance properties
- {{domxref("ImageTrack.animated")}} {{ReadOnlyInline}}
- : Returns a {{jsxref("Boolean")}} indicating whether the track is animated and therefore has multiple frames.
- {{domxref("ImageTrack.frameCount")}} {{ReadOnlyInline}}
- : Returns an integer indicating the number of frames in the track.
- {{domxref("ImageTrack.repetitionCount")}} {{ReadOnlyInline}}
- : Returns an integer indicating the number of times that the animation repeats.
- {{domxref("ImageTrack.selected")}}
- : Returns a {{jsxref("Boolean")}} indicating whether the track is selected for decoding.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}