Language

MPNowPlayingInfo Class

Definition

Provides strongly-typed access to "now playing" media information displayed on the lock screen, during AirPlay, or on external accessories.

public class MPNowPlayingInfo
type MPNowPlayingInfo = class
Inheritance
MPNowPlayingInfo

Constructors

Name Description
MPNowPlayingInfo()

Creates a new empty MPNowPlayingInfo instance.

Fields

Name Description
AlbumTitle

Gets or sets the title of the album.

AlbumTrackCount

Gets or sets the total number of tracks in the album.

AlbumTrackNumber

Gets or sets the track number within the album.

Artist

Gets or sets the name of the artist.

Artwork

Gets or sets the artwork image for the media item.

ChapterCount

Gets or sets the total number of chapters.

ChapterNumber

Gets or sets the current chapter number.

Composer

Gets or sets the name of the composer.

DefaultPlaybackRate

Gets or sets the default playback rate.

DiscCount

Gets or sets the total number of discs in the album.

DiscNumber

Gets or sets the disc number within the album.

ElapsedPlaybackTime

Gets or sets the elapsed playback time, in seconds.

Genre

Gets or sets the genre of the media item.

PersistentID

Gets or sets the persistent identifier for the media item.

PlaybackDuration

Gets or sets the total duration of the media item, in seconds.

PlaybackQueueCount

Gets or sets the total number of items in the playback queue.

PlaybackQueueIndex

Gets or sets the index of the current item in the playback queue.

PlaybackRate

Gets or sets the playback rate (1.0 = normal speed).

Title

Gets or sets the title of the media item.

Properties

Name Description
AssetUrl

Gets or sets the URL for the currently playing asset.

AvailableLanguageOptions

Gets or sets the available language options for the media item.

CollectionIdentifier

Gets or sets the identifier for the collection containing this media item.

CurrentLanguageOptions

Gets or sets the currently selected language options for the media item.

CurrentPlaybackDate

Gets or sets the date corresponding to the current playback position in the media item.

ExternalContentIdentifier

Gets or sets the external content identifier for the media item.

ExternalUserProfileIdentifier

Gets or sets the external user profile identifier associated with the media item.

IsLiveStream

Gets or sets a value indicating whether the media item is a live stream.

MediaType

Gets or sets the media type of the now-playing item.

PlaybackProgress

Gets or sets the playback progress as a value between 0.0 and 1.0.

Applies to

See also