AstroMediaItem
A data class representing a single media item in the AstroPlayer playlist.
Properties
Link copied to clipboard
Optional metadata associated with the media item. This AstroMediaMetadata provides additional information such as title, artist, album, genre, and more.
Functions
Link copied to clipboard
fun AstroMediaItem.asNativeMediaItem(metadata: MediaMetadata? = this.metadata?.asNativeMediaMetadata()): MediaItem
Converts an AstroMediaItem
object to a platform-specific MediaItem
object suitable for the underlying media player.
Link copied to clipboard
fun AstroMediaItem.asNativeMediaItemBuilder(metadata: MediaMetadata? = this.metadata?.asNativeMediaMetadata()): MediaItem.Builder
Creates a builder object for a platform-specific MediaItem
compatible with the underlying media player, pre-populated with data from the current AstroMediaItem
.