Global Variable

MPMediaItemPropertyAssetURL

A URL pointing to the media item, from which an AVAsset object (or other URL-based AVFoundation object) can be created, with any options as desired.

Declaration

let MPMediaItemPropertyAssetURL: String

Discussion

Value is an NSURL object. The URL has the custom scheme of ipod-library. For example, a URL might look like this:

ipod-library://item/item.m4a?id=12345

See Also

Not Filterable by MPMediaPropertyPredicate Queries

let MPMediaItemPropertyPlaybackDuration: String

The playback duration of the media item.

let MPMediaItemPropertyAlbumTrackNumber: String

The track number of the media item, for a media item that is part of an album.

let MPMediaItemPropertyAlbumTrackCount: String

The number of tracks in the album that contains the media item.

let MPMediaItemPropertyDiscNumber: String

The disc number of the media item, for a media item that is part of a multi-disc album.

let MPMediaItemPropertyDiscCount: String

The number of discs in the album that contains the media item.

let MPMediaItemPropertyArtwork: String

The artwork image for the media item.

let MPMediaItemPropertyLyrics: String

The lyrics for the media item.

let MPMediaItemPropertyReleaseDate: String

The date on which the media item was first publicly released.

let MPMediaItemPropertyBeatsPerMinute: String

The number of musical beats per minute for the media item, corresponding to the “BPM” field in the Info tab in the Get Info dialog in iTunes.

let MPMediaItemPropertyComments: String

Textual information about the media item, corresponding to the “Comments” field in the Info tab in the Get Info dialog in iTunes.

let MPMediaItemPropertyIsExplicit: String

A Boolean value indicating whether the media item contains explicit content.

let MPMediaItemPropertyPlaybackStoreID: String

The identifier used to enqueue store tracks.