setMediaList

open override fun setMediaList(mediaList: List<Media>)

This operation will stop the current MediaItem that is playing, if there is one, as per Player.setMediaItems.


open override fun setMediaList(mediaList: List<Media>, index: Int, position: Duration?)

This operation will stop the current MediaItem that is playing, if there is one, as per Player.setMediaItems and set the starting position to the position passed as parameter.