getActiveMediaTracks
open override fun getActiveMediaTracks(parameters: TrackSelectionParameters, tracks: List<MediaTrack>): LongArray
Returns the track ids 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 ids of these tracks.
Return
An array of track ids for the selected tracks. Returns an empty array if no tracks are selected.
Parameters
parameters
The track selection preferences.
tracks
The available media tracks.