remove

fun remove(mediaItem: MediaItem): Boolean

Remove a MediaItem from the preload manager.

Return

true if the preload manager is holding a MediaSource of the given MediaItem and it has been removed, false otherwise.

Parameters

mediaItem

The MediaItem to remove.

See also


fun remove(mediaSource: MediaSource): Boolean

Remove a MediaSource from the preload manager.

Return

true if the preload manager is holding the given MediaSource and it has been removed, false otherwise.

Parameters

mediaSource

The MediaSource to remove.

See also