PillarboxPreloadManager
Helper class for Media3's DefaultPreloadManager that simplifies preloading of media items for PillarboxExoPlayer.
Parameters
The Context.
The TargetPreloadStatusControl to decide when to preload an item and for how long.
The PillarboxMediaSourceFactory to create each MediaSource.
The TrackSelector for this preload manager.
The BandwidthMeter for this preload manager.
The RenderersFactory for this preload manager.
The LoadControl for this preload manager.
The Thread on which the players run. Its lifecycle is handled internally by PillarboxPreloadManager.
See also
Constructors
Types
Default implementation of TargetPreloadStatusControl that manages the preload status of items based on their proximity to the currently playing item.
Properties
The index of the currently playing media item.
The Looper associated with the Thread on which playback operations are performed by the PillarboxExoPlayer.
Gets the count of the MediaSources currently being managed by the preload manager.
Functions
Adds a MediaItem with its rankingData to the preload manager.
Adds a MediaSource with its rankingData to the preload manager.
Returns the MediaSource for the given MediaItem.
Invalidates the current preload progress, and triggers a new preload progress based on the new priorities of the managed MediaSources.
Removes a MediaItem from the preload manager.
Removes a MediaSource from the preload manager.