replaceMediaItem

expect open fun replaceMediaItem(index: Int, mediaItem: AstroMediaItem)

Replaces a media item at a specific index in the playlist.

Parameters

index

The index of the media item to replace.

mediaItem

The new media item to insert.

actual open fun replaceMediaItem(index: Int, mediaItem: AstroMediaItem)
actual open fun replaceMediaItem(index: Int, mediaItem: AstroMediaItem)

Replaces a media item at a specific index in the playlist.

Parameters

index

The index of the media item to replace.

mediaItem

The new media item to insert.