MDN self-hosted library · e01.org

ImageTrackList: selectedIndex property

WebCodecs APIwindowanddedicated

Open notebook · 1 cells web-api-instance-property upstream source

WebCodecs APIwindow_and_dedicated

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

Browser compatibility