setMediaItems

abstract fun setMediaItems(mediaItems: List<MediaItem>)

Clears the playlist, adds the specified media items and resets the position to the default position.

Parameters

mediaItems

The new media item.