The read-only VideoTrackList
property selectedIndex
returns the index of the currently selected track, if any, or -1
otherwise.
The read-only VideoTrackList
property selectedIndex
returns the index of the currently selected track, if any, or -1
otherwise.
A number indicating the index of the currently selected track, if any, or -1
otherwise.
Specification |
---|
HTML Standard # dom-videotracklist-selectedindex-dev |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
selectedIndex |
37 | 7912–79 | 33 | 10 | 24 | 7 | No | 37 | No | No | 7 | No |
© 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/VideoTrackList/selectedIndex