mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

This is necessary for the child cl that `TrackSelection` in two distinct class. It avoids to split the array version of such class too. TrackSelectionArray exist to have an immutable array of TrackSelection. Internal users are trusted to not mutate the array. One drawback of this approach is that a `TrackSelectionArray` has to be allocated on the boundary of the `Player` interface. This should not be a performance issue as this only happens on trackSelection changes, when the user calls `Player.getCurrentTrackSelections` and on `updateLoadControlTrackSelection`. #player-to-common PiperOrigin-RevId: 353582654
ExoPlayer library
The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.