setTrackOverride

Sets a track selection override.

Parameters

override

The track selection override to apply.


Applies a TrackSelectionOverride to the current TrackSelectionParameters.

Track Override Behavior:

  • Audio: sets the preferred audio language, which is crucial for handling forced subtitles correctly.

  • Text: sets the preferred text language and role flags based on the override.

  • Video: sets the maximum video size.

Return

A new TrackSelectionParameters instance with the override applied.

Parameters

override

The TrackSelectionOverride containing the track selection criteria.