setMediaList

abstract fun setMediaList(mediaList: List<Media>)

Clears the playlist, adds the specified Media list and resets the position to the default position.

Parameters

mediaList

The new Media list.


abstract fun setMediaList(mediaList: List<Media>, index: Int, position: Duration? = null)

Clears the playlist, adds the specified Media list and resets the position to the provided position.

Parameters

mediaList

The new Media list.

index

The Media index to start playback from

position

The position to start playback from.