addMediaItem

expect open fun addMediaItem(item: AstroMediaItem)

Adds a media item to the playlist.

Parameters

item

The media item to add.


expect open fun addMediaItem(index: Int, item: AstroMediaItem)

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

Parameters

index

The index at which to insert the media item.

item

The media item to add.

actual open fun addMediaItem(item: AstroMediaItem)
actual open fun addMediaItem(index: Int, item: AstroMediaItem)
actual open fun addMediaItem(item: AstroMediaItem)

Adds a media item to the playlist.

Parameters

item

The media item to add.


actual open fun addMediaItem(index: Int, item: AstroMediaItem)

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

Parameters

index

The index at which to insert the media item.

item

The media item to add.