replace

open fun replace(index: Int, video: Video)

Removes and replaces the video at the specified index.

Parameters

index

The index to replace a media item.

video

The video to replace

Throws

when index <0 or index is larger than the size of the video list.