media/libraries
tonihei a9e75d8e3a De-duplicate track selection code.
We currently run (almost) the same code for all track types.
De-duplicate this by using a single method that takes functional
interfaces for track-type dependent logic.

This has the benefit that all track-type dependent logic is
contained within their subclasses and the generic logic doesn't
need to make any assumption about the eligibility of tracks for
selection or adaptation, and doesn't need to access Parameters.

Make this change for audio and text only for now. Video can
be updated in a subsequent change.

PiperOrigin-RevId: 421811411
2022-01-25 18:19:21 +00:00
..
cast Include mediaId when marshalling a MediaItem to JSON 2022-01-11 13:29:06 +00:00
common Transformer GL: Clarify variables and comments. 2022-01-25 18:17:15 +00:00
database Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource Change DefaultHttpDataSourceTest to an instrumentation test 2022-01-05 10:00:46 +00:00
datasource_cronet Update dependency versions 2021-11-19 14:42:25 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_av1 Rename StyledPlayerView to PlayerView 2022-01-25 18:10:42 +00:00
decoder_ffmpeg Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_flac Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_opus Fix 1 ErrorProneStyle finding: 2022-01-05 12:15:12 +00:00
decoder_vp9 Rename StyledPlayerView to PlayerView 2022-01-25 18:10:42 +00:00
exoplayer De-duplicate track selection code. 2022-01-25 18:19:21 +00:00
exoplayer_dash Disable live speed adjustment where it has no benefit 2022-01-25 18:04:02 +00:00
exoplayer_hls Disable live speed adjustment where it has no benefit 2022-01-25 18:04:02 +00:00
exoplayer_ima Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
exoplayer_rtsp Use RTSP server for RTSP auth realm. 2022-01-11 13:32:41 +00:00
exoplayer_smoothstreaming Remove setTag from (Ss|Hls|Dash)MediaSource.Factory 2022-01-11 13:44:06 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor Parse CryptoInfo from simpleTag and set it into DrmInitData. 2022-01-05 12:15:27 +00:00
session Fix NPE in MediaController's constructor 2022-01-25 18:00:42 +00:00
test_data DASH: Stop interpreting main track role as SELECTION_FLAG_DEFAULT 2022-01-05 12:15:27 +00:00
test_exoplayer_playback Migrate usages of deprecated MediaSourceFactory methods 2022-01-05 10:40:02 +00:00
test_session_common Migrate media3.session references from Window to MediaItem 2021-11-08 15:13:41 +00:00
test_session_current Fix NPE in MediaController's constructor 2022-01-25 18:00:42 +00:00
test_utils Remove Transformer-specific things from MediaCodecAdapter. 2022-01-25 18:05:31 +00:00
test_utils_robolectric Migrate usages of Window-based Player methods 2021-11-09 10:07:30 +00:00
transformer Transformer GL: Clarify variables and comments. 2022-01-25 18:17:15 +00:00
ui Rename StyledPlayerView to PlayerView 2022-01-25 18:10:42 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00