setMediaListAndPlay

abstract fun setMediaListAndPlay(mediaList: List<Media>, index: Int)

Clears the playlist, adds the specified Media list and plays the Media at the position of the index passed as param.

Parameters

mediaList

The new Media list.

index

The new position.