media/libraries
tianyifeng d952a06214 Fix a bug in retaining streams when preload a PreloadMediaPeriod again
The `PreloadMediaPeriod.selectTracksForPreloading` can be called for multiple times at the preloading stage (before the period is being played). For example, when the period resumes preloading. This change fix the assertion failure in `ProgressiveMediaPeriod.selectTracks` caused by the wrong implementation of `PreloadMediaPeriod.selectTracksForPreloading` when it is trying to retain the previously preloaded streams.

Also the `TrackSelectorResult` parameter is changed to a list of `ExoTrackSelection`. We should compare the selections only rather than considering the `RendererConfiguration` in the `TrackSelectorResult` to decide whether to retain the streams, as for preloading case the renderers haven't consumed the samples yet.

PiperOrigin-RevId: 609126868
2024-02-21 14:41:33 -08:00
..
cast Return empty timeline when media info is null 2023-11-20 09:55:36 -08:00
common Merge pull request #983 from MGaetan89:min_api_19 2024-02-15 07:00:17 -08:00
container Fix transformer, effect, muxer and container API dependencies 2024-02-09 10:05:54 -08:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Move bitmap decoding into datasource util 2024-02-20 06:57:02 -08:00
datasource_cronet Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
datasource_okhttp Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Satisfy nullness checker correctness by using local variable 2023-10-31 12:56:32 +00:00
decoder_av1 Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_ffmpeg Replace or suppress deprecated usages 2024-01-26 10:06:18 -08:00
decoder_flac Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
decoder_midi MidiExtractor: mark only the first sample as key-frame 2023-11-21 07:39:46 -08:00
decoder_opus Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
decoder_vp9 Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
effect Merge pull request #983 from MGaetan89:min_api_19 2024-02-15 07:00:17 -08:00
exoplayer Fix a bug in retaining streams when preload a PreloadMediaPeriod again 2024-02-21 14:41:33 -08:00
exoplayer_dash Rollback of 406c0a15be 2024-02-07 09:56:59 -08:00
exoplayer_hls Rollback of 406c0a15be 2024-02-07 09:56:59 -08:00
exoplayer_ima Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
exoplayer_rtsp Allow empty information attributes in RTSP Session Description 2024-02-20 02:47:40 -08:00
exoplayer_smoothstreaming Rollback of 406c0a15be 2024-02-07 09:56:59 -08:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Clarify purpose of omitting zero duration clipped audio samples 2024-02-20 06:17:28 -08:00
muxer Add E2E test for Mp4Muxer to verify overall box structure 2024-02-19 05:31:34 -08:00
session Merge pull request #983 from MGaetan89:min_api_19 2024-02-15 07:00:17 -08:00
test_data Test: Add sequence effect test with bt601 image and bt709 video. 2024-02-21 05:22:11 -08:00
test_exoplayer_playback Rollback of 8e2869278c 2024-02-15 02:35:12 -08:00
test_session_common Remove unnecessary SDK_INT checks 2024-02-13 10:26:19 +00:00
test_session_current Merge pull request #983 from MGaetan89:min_api_19 2024-02-15 07:00:17 -08:00
test_utils Improve retrieveTrackFormat() java doc and remove catch block 2024-02-21 04:11:39 -08:00
test_utils_robolectric Update TestPlayerRunHelper to fail on non-fatal errors by default 2024-02-21 07:39:07 -08:00
transformer Transformer: Input decoder output color to VideoSampleExporter. 2024-02-21 12:15:11 -08:00
ui Small clean-ups and added @InlineMe annotation 2024-02-13 14:48:15 +00:00
ui_leanback Bump effect and leanback minSdk to 19 2024-01-10 07:22:00 -08:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2023-11-15 02:34:40 -08:00