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

Add a new method `onUsedByPlayer(PreloadMediaSource)` for `PreloadMediaSource.PreloadControl`, which will be invoked when the player starts to use the `PreloadMediaSource`, or calling `PreloadMediaSource.preload` while the player is already using that source. `DefaultPreloadManager` will immediately preload the next source when receiving `onUsedByPlayer` event. PiperOrigin-RevId: 616789121
Short form content demo
This app demonstrates usage of ExoPlayer in common short form content UI setups.
See the demos README for instructions on how to build and run this demo.