Back to Content

ImageTrack: animated property

files/en-us/web/api/imagetrack/animated/index.md

latest540 B
Original Source

{{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}}