AstroMediaMetadata

data class AstroMediaMetadata(val title: String? = null, val artist: String? = null, val albumTitle: String? = null, val albumArtist: String? = null, val displayTitle: String? = null, val subtitle: String? = null, val description: String? = null, val artworkUri: Uri? = null, val trackNumber: Int? = null, val totalTrackCount: Int? = null, val recordingYear: Int? = null, val recordingMonth: Int? = null, val recordingDay: Int? = null, val releaseYear: Int? = null, val releaseMonth: Int? = null, val releaseDay: Int? = null, val writer: String? = null, val composer: String? = null, val conductor: String? = null, val discNumber: Int? = null, val totalDiscCount: Int? = null, val genre: String? = null, val compilation: String? = null, val station: String? = null, val equalizerIdentifier: String? = null, val extras: Map<String, Any>? = null)

A data class representing metadata associated with a media item in the AstroPlayer playlist. This data class provides optional fields for various metadata categories. Not all fields might be available for all media types, and the specific information available will depend on the media source and the player implementation.

Constructors

Link copied to clipboard
constructor(title: String? = null, artist: String? = null, albumTitle: String? = null, albumArtist: String? = null, displayTitle: String? = null, subtitle: String? = null, description: String? = null, artworkUri: Uri? = null, trackNumber: Int? = null, totalTrackCount: Int? = null, recordingYear: Int? = null, recordingMonth: Int? = null, recordingDay: Int? = null, releaseYear: Int? = null, releaseMonth: Int? = null, releaseDay: Int? = null, writer: String? = null, composer: String? = null, conductor: String? = null, discNumber: Int? = null, totalDiscCount: Int? = null, genre: String? = null, compilation: String? = null, station: String? = null, equalizerIdentifier: String? = null, extras: Map<String, Any>? = null)

Properties

Link copied to clipboard
val albumArtist: String? = null

The artist or performer associated with the album.

Link copied to clipboard
val albumTitle: String? = null

The title of the album the media item belongs to.

Link copied to clipboard
val artist: String? = null

The artist or performer associated with the media item (e.g., singer, band).

Link copied to clipboard
val artworkUri: Uri? = null

The URI of artwork associated with the media item (e.g., album cover).

Link copied to clipboard
val compilation: String? = null

Whether the media is part of a compilation album.

Link copied to clipboard
val composer: String? = null

The composer(s) of the media content (e.g., music composer).

Link copied to clipboard
val conductor: String? = null

The conductor associated with the media content (e.g., orchestra conductor).

Link copied to clipboard
val description: String? = null

A textual description of the media item.

Link copied to clipboard
val discNumber: Int? = null

The disc number within a multi-disc set (1-based).

Link copied to clipboard
val displayTitle: String? = null

An alternative title for display purposes.

Link copied to clipboard

An identifier for a specific equalizer preset to be applied to this media item (implementation-specific). This is used with AstroPlayer.isSmartEqualizerEnabled for smart equalizer functionality.

Link copied to clipboard
val extras: Map<String, Any>? = null

A map containing additional metadata key-value pairs that are not covered by the other properties.

Link copied to clipboard
val genre: String? = null

The genre of the media content.

Link copied to clipboard
val recordingDay: Int? = null

The day of the month the media was recorded.

Link copied to clipboard
val recordingMonth: Int? = null

The month the media was recorded (1-based).

Link copied to clipboard
val recordingYear: Int? = null

The year the media was recorded.

Link copied to clipboard
val releaseDay: Int? = null

The day of the month the media was released.

Link copied to clipboard
val releaseMonth: Int? = null

The month the media was released (1-based).

Link copied to clipboard
val releaseYear: Int? = null

The year the media was released.

Link copied to clipboard
val station: String? = null

The radio station associated with the media (if applicable).

Link copied to clipboard
val subtitle: String? = null

A subtitle or secondary title for the media item.

Link copied to clipboard
val title: String? = null

The title of the media item (e.g., song title, movie title).

Link copied to clipboard
val totalDiscCount: Int? = null

The total number of discs in a multi-disc set.

Link copied to clipboard
val totalTrackCount: Int? = null

The total number of tracks in the album or playlist.

Link copied to clipboard
val trackNumber: Int? = null

The track number within the album or playlist (1-based).

Link copied to clipboard
val writer: String? = null

The writer(s) of the media content (e.g., songwriter).

Functions

Link copied to clipboard

Converts an AstroMediaMetadata object to a platform-specific MediaMetadata object suitable for the underlying media player.

Link copied to clipboard

Creates a builder object for a platform-specific MediaMetadata compatible with the underlying media player, pre-populated with data from the current AstroMediaItem.metadata.