ImageTrackList.selectedTrack

The selectedTrack property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.

Value

An ImageTrack object.

Examples

The following example returns the selectedTrack then prints it to the console.

let track = imageDecoder.tracks.selectedTrack;
console.log(track);

Specifications

Specification
WebCodecs
# dom-imagetracklist-selectedtrack

Browser compatibility

BCD tables only load in the browser