PillarboxPreloadManager
Helper class for the Media3's DefaultPreloadManager.
Parameters
The current 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 RendererCapabilitiesList.Factory 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 will preload the first second of the n ± 1
item, and the first half-second of the n ± 2,3
item, where n
is the index of the current item.
Properties
The Allocator for this preload manager. Have to be the same as the one used by the Player.
The index of the currently playing media item.
Playback looper to use with PillarboxExoPlayer.
Get the count of MediaSource currently managed by this preload manager.
Functions
Add a MediaItem with its rankingData to the preload manager.
Add a MediaSource with its rankingData to the preload manager.
Returns the MediaSource for the given MediaItem.
Invalidate the current preload manager.
Remove a MediaItem from the preload manager.
Remove a MediaSource from the preload manager.