Back to Content

ImageDecoder: tracks property

files/en-us/web/api/imagedecoder/tracks/index.md

latest537 B
Original Source

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

The tracks read-only property of the {{domxref("ImageDecoder")}} interface returns a list of the tracks in the encoded image data.

Value

An {{domxref("ImageTrackList")}}.

Examples

The following example prints the value of tracks to the console. This will be an {{domxref("ImageTrackList")}} object.

js
console.log(imageDecoder.tracks);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}