VideoTrackList.selectedIndex

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

Syntax

var index = VideoTrackList.selectedIndex;

Value

A number indicating the index of the currently selected track, if any, or -1 otherwise.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'VideoTrackList: selectedIndex' in that specification.
Living Standard

Browser compatibility

BCD tables only load in the browser