Firefox Tomorrow

web api instance property

ImageTrackList: selectedIndex property

View on MDN ↗

Available in workers

The selectedIndex property of the ImageTrackList interface returns the index of the selected track.

Value

An integer.

Examples

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

let tracks = imageDecoder.tracks;
console.log(tracks.selectedIndex);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.