selectedIndex property

Returns the index of the currently selected VideoTrack.

This property is read-only.

Syntax

JavaScript
index = object.selectedIndex

 

Property values

Type: number

Returns the index of the selected track. If no tracks exist in the VideoTrackList, returns a -1.

See also

VideoTrackList

 

 

Show: