Back to Content

VideoTrackList: selectedIndex property

files/en-us/web/api/videotracklist/selectedindex/index.md

latest356 B
Original Source

{{APIRef("HTML DOM")}}

The read-only {{domxref("VideoTrackList")}} property selectedIndex returns the index of the currently selected track, if any, or -1 otherwise.

Value

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}