clearThenAddMediaItems

Clears the current playlist and then adds a collection of media items.

This method is equivalent to calling clearMediaItems() followed by addMediaItems(item).

Parameters

item

A list of media items to add to the playlist.


Clears the current playlist and then adds a collection of media items at a specific index.

This method is equivalent to calling clearMediaItems() followed by addMediaItems(index, item).

Parameters

index

The index at which to insert the media items in the playlist.

item

A list of media items to add.