ImageTrackList

The ImageTrackList interface of the WebCodecs API represents a list of image tracks. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard
open external override val length: Int

The length property of the ImageTrackList interface returns the length of the ImageTrackList.

Link copied to clipboard
external val ready: Promise<Void>

The ready property of the ImageTrackList interface returns a Promise that resolves when the ImageTrackList is populated with tracks.

Link copied to clipboard
external val selectedIndex: Int

The selectedIndex property of the ImageTrackList interface returns the index of the selected track.

Link copied to clipboard
external val selectedTrack: ImageTrack?

The selectedTrack property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.

Functions

Link copied to clipboard
open operator external fun get(index: Int): ImageTrack