The read-only VideoTrackList property selectedIndex returns the index of the currently selected track, if any, or -1 otherwise.
VideoTrackList
selectedIndex
-1
A number indicating the index of the currently selected track, if any, or -1 otherwise.