Class

A collection of properties that represents a single item in the media library.

iOS 3.0+iPadOS 3.0+Mac Catalyst 13.1+tvOS 14.0+visionOS 1.0+

class MPMediaItem

Topics

Media item properties

var albumTitle: String?

The title of an album, such as Live on Mars, rather than the title of an individual song on the album, such as “Crater Dance.”

var artist: String?

The performing artists for a media item, which may vary from the primary artist for the album that a media item belongs to.

var isCloudItem: Bool

A Boolean value that indicates whether the media item is an iCloud Music Library item.

var discNumber: Int

The disc number of the media item, for a media item that’s part of a multidisc album.

var podcastTitle: String?

The title of a podcast, such as This Martian Drudgery, rather than the title of an individual episode of a podcast, such as “Episode 12: Another Cold Day at the Pole.”

Current page is MPMediaItem