media/libraries
tianyifeng 5e31cd9df3 Add BasePreloadManager and DefaultPreloadManager
`BasePreloadManager` coordinates the preloading for multiple sources based on the priorities defined by their `rankingData`. Customization is possible by extending this class. Apps will implement `TargetPreloadStatusControl` to return preload manager the target preload status for a given `rankingData` of the source.

`DefaultPreloadManager` extends from the above base class and uses `PreloadMediaSource` to preload media samples of the sources into memory. It also uses an integer `rankingData` that indicates the index of an item on the UI, and the priority of the items is determined by their adjacency to the current playing item. Apps can set the index of current playing item via `DefaultPreloadManager.setCurrentPlayingIndex` when the user swiping is detected.

PiperOrigin-RevId: 612829642
2024-03-05 07:14:18 -08:00
..
cast Return empty timeline when media info is null 2023-11-20 09:55:36 -08:00
common Have VideoSampleExporter output orientation match input 2024-02-28 07:40:53 -08:00
container Add MdtaMetadataEntry constructor with default locale indicator 2024-02-22 10:55:50 -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 Remove deprecated CronetDataSourceFactory 2024-02-29 04:59:35 -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 Test effect-enabled playback 2024-02-27 09:44:24 -08:00
exoplayer Add BasePreloadManager and DefaultPreloadManager 2024-03-05 07:14:18 -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 Add Mp4ExtractorTest case for pixel-motion-photo-2-hevc-tracks.mp4 2024-02-28 01:23:01 -08:00
muxer Rename DefaultMp4Writer to BasicMp4Writer 2024-02-29 04:16:15 -08:00
session Fix some invalid javadoc references caught by a new JDK version 2024-03-05 05:48:34 -08:00
test_data Have VideoSampleExporter output orientation match input 2024-02-28 07:40:53 -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 Avoid position jumping back when controller replaces the current item 2024-02-29 04:07:17 -08:00
test_utils Test effect-enabled playback 2024-02-27 09:44:24 -08:00
test_utils_robolectric Fix some invalid javadoc references caught by a new JDK version 2024-03-05 05:48:34 -08:00
transformer Move AudioGraph effects to configure method 2024-03-05 04:46:36 -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