ImageTrackList: length property

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Note: This feature is available in Dedicated Web Workers.

The length property of the ImageTrackList interface returns the length of the ImageTrackList.

Value

An integer.

Examples

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

js
let tracks = imageDecoder.tracks;
console.log(tracks.length);

Specifications

Specification
WebCodecs
# dom-imagetracklist-length

Browser compatibility

BCD tables only load in the browser