add

fun add(mediaItem: MediaItem, rankingData: Int)

Add a MediaItem with its rankingData to the preload manager.

Parameters

mediaItem

The MediaItem to add.

rankingData

The ranking data that is associated with the mediaItem.

See also


fun add(mediaSource: MediaSource, rankingData: Int)

Add a MediaSource with its rankingData to the preload manager.

Parameters

mediaSource

The MediaSource to add.

rankingData

The ranking data that is associated with the mediaSource.

See also