W3cubDocs

/Web APIs

ImageTrackList: selectedTrack property

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

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.

js

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

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
selectedTrack 94 94 No No 80 No 94 94 No 66 No 17.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ImageTrackList/selectedTrack