getActiveMediaTracks

open override fun getActiveMediaTracks(parameters: TrackSelectionParameters, tracks: Tracks): LongArray

Returns the indices of the currently selected media tracks.

This function determines the active tracks based on the provided parameters and the available tracks. It returns an array containing the indices of these tracks.

Return

An array of track indices for the selected tracks. Returns an empty array if no tracks are selected.

Parameters

parameters

The track selection preferences.

tracks

The available media tracks.

See also