Note: This feature is available in Dedicated Web Workers.
The selectedTrack property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.
An ImageTrack object.
The following example returns the selectedTrack then prints it to the console.
let track = imageDecoder.tracks.selectedTrack;
console.log(track);