ImageTrack: animated property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The **animated** property of the {{domxref("ImageTrack")}} interface returns true if the track is animated and therefore has multiple frames.

Value

A {{jsxref("Boolean")}}, if true this is an animated track.

Examples

The following example prints the value of animated to the console.

js
let track = imageDecoder.tracks.selectedTrack;
console.log(track.animated);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}