<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -",
    "tvOS: 5.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPNowPlayingInfoCenter",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPNowPlayingInfoCenter"
  },
  "title" : "MPNowPlayingInfoCenter"
}
-->

# MPNowPlayingInfoCenter

An object for setting the Now Playing information for media that your app plays.

```
class MPNowPlayingInfoCenter
```

## Overview

If your app also provides Now Playing information containing information about the current track, use this object to update that information at appropriate times. This object contains a [`nowPlayingInfo`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/nowPlayingInfo) dictionary describing the playing item.

> Important:
> Siri can provide suggestions in search, News, Safari, and other apps using on-device information that you contribute through the Now Playing APIs. Users can control Siri on-device learning through Siri and Search settings for your app.

The system displays Now Playing information on the device’s Lock Screen and in the media controls in Control Center. If the user directs playback of your media to Apple TV using AirPlay, the Now Playing information appears on the television screen. If the user connects a device to an iPod accessory, such as in a car, the accessory may display Now Playing information.

> Important:
> To ensure that your app interacts successfully with the widest possible range of accessories, provide values for as many information properties as you can in the ``doc://com.apple.mediaplayer/documentation/MediaPlayer/MPNowPlayingInfoCenter/nowPlayingInfo`` dictionary.

The information you can specify includes all of the Now Playing metadata properties (see the Accessing Now Playing metadata properties topic group below), and the following subset of [`MPMediaItem`](/documentation/MediaPlayer/MPMediaItem) properties:

- [`MPMediaItemPropertyAlbumTitle`](/documentation/MediaPlayer/MPMediaItemPropertyAlbumTitle)
- [`MPMediaItemPropertyAlbumTrackCount`](/documentation/MediaPlayer/MPMediaItemPropertyAlbumTrackCount)
- [`MPMediaItemPropertyAlbumTrackNumber`](/documentation/MediaPlayer/MPMediaItemPropertyAlbumTrackNumber)
- [`MPMediaItemPropertyArtist`](/documentation/MediaPlayer/MPMediaItemPropertyArtist)
- [`MPMediaItemPropertyArtwork`](/documentation/MediaPlayer/MPMediaItemPropertyArtwork)
- [`MPMediaItemPropertyComposer`](/documentation/MediaPlayer/MPMediaItemPropertyComposer)
- [`MPMediaItemPropertyDiscCount`](/documentation/MediaPlayer/MPMediaItemPropertyDiscCount)
- [`MPMediaItemPropertyDiscNumber`](/documentation/MediaPlayer/MPMediaItemPropertyDiscNumber)
- [`MPMediaItemPropertyGenre`](/documentation/MediaPlayer/MPMediaItemPropertyGenre)
- [`MPMediaItemPropertyMediaType`](/documentation/MediaPlayer/MPMediaItemPropertyMediaType)
- [`MPMediaItemPropertyPersistentID`](/documentation/MediaPlayer/MPMediaItemPropertyPersistentID)
- [`MPMediaItemPropertyPlaybackDuration`](/documentation/MediaPlayer/MPMediaItemPropertyPlaybackDuration)
- [`MPMediaItemPropertyTitle`](/documentation/MediaPlayer/MPMediaItemPropertyTitle)

You don’t have direct control over what information the system displays, or its formatting. You set the values in the [`nowPlayingInfo`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/nowPlayingInfo) dictionary and the system or the connected accessory handles displaying the information in a consistent manner for all apps.

You can ensure that your app interacts well with other apps providing Now Playing information by following the best practices in the [Becoming a now playable app](/documentation/MediaPlayer/becoming-a-now-playable-app) sample code project.

> Important:
> In iOS 17.2 and later, the Journal app encourages people to reflect and write about their day-to-day experiences, including media they listened to or watched. If your app donates media information to ``doc://com.apple.mediaplayer/documentation/MediaPlayer/MPNowPlayingInfoCenter``, and you choose not to opt-out, the media played may appear as a suggestion in the Journal app, or other apps that use the Journaling Suggestions framework.

## Topics

### Working with the default Now Playing info center

[`class func `default`() -> MPNowPlayingInfoCenter`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/default())

Returns the singleton Now Playing info center.

[`var nowPlayingInfo: [String : Any]?`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/nowPlayingInfo)

The current Now Playing information for the default Now Playing info center.

[`enum MPNowPlayingInfoMediaType`](/documentation/MediaPlayer/MPNowPlayingInfoMediaType)

The type of media currently playing.

[`class var supportedAnimatedArtworkKeys: [String]`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/supportedAnimatedArtworkKeys)

Keys related to animated artwork that are supported by the current platform.

### Setting the playback state in macOS

[`var playbackState: MPNowPlayingPlaybackState`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/playbackState)

The current playback state of the app.

[`enum MPNowPlayingPlaybackState`](/documentation/MediaPlayer/MPNowPlayingPlaybackState)

The playback state of the app.

### Accessing Now Playing metadata properties

Provide specific details about the currently playing item.

[`let MPNowPlayingInfoCollectionIdentifier: String`](/documentation/MediaPlayer/MPNowPlayingInfoCollectionIdentifier)

The identifier of the collection the Now Playing item belongs to.

[`let MPNowPlayingInfoPropertyAdTimeRanges: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyAdTimeRanges)

A list of ad breaks in the Now Playing item.

[`let MPNowPlayingInfoPropertyAvailableLanguageOptions: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyAvailableLanguageOptions)

The available language option groups for the Now Playing item.

[`let MPNowPlayingInfoPropertyAssetURL: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyAssetURL)

The URL pointing to the Now Playing item’s underlying asset.

[`let MPNowPlayingInfoPropertyChapterCount: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyChapterCount)

The total number of chapters in the Now Playing item.

[`let MPNowPlayingInfoPropertyChapterNumber: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyChapterNumber)

The number corresponding to the currently playing chapter.

[`let MPNowPlayingInfoPropertyCreditsStartTime: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyCreditsStartTime)

The start time for the credits, in seconds, without ads, for the Now Playing item.

[`let MPNowPlayingInfoPropertyCurrentLanguageOptions: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyCurrentLanguageOptions)

The currently active language options for the Now Playing item.

[`let MPNowPlayingInfoPropertyCurrentPlaybackDate: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyCurrentPlaybackDate)

The date associated with the current elapsed playback time.

[`let MPNowPlayingInfoPropertyDefaultPlaybackRate: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyDefaultPlaybackRate)

The default playback rate for the Now Playing item.

[`let MPNowPlayingInfoPropertyElapsedPlaybackTime: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyElapsedPlaybackTime)

The elapsed time of the Now Playing item, in seconds.

[`let MPNowPlayingInfoPropertyExcludeFromSuggestions: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyExcludeFromSuggestions)

A number that denotes whether to exclude the Now Playing item from content suggestions.

[`let MPNowPlayingInfoPropertyExternalContentIdentifier: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyExternalContentIdentifier)

The opaque identifier that uniquely identifies the Now Playing item, even through app relaunches.

[`let MPNowPlayingInfoPropertyExternalUserProfileIdentifier: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyExternalUserProfileIdentifier)

The opaque identifier that uniquely identifies the profile the Now Playing item plays from, even through app relaunches.

[`let MPNowPlayingInfoPropertyInternationalStandardRecordingCode: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyInternationalStandardRecordingCode)

The International Standard Recording Code (ISRC) of the Now Playing item.

[`let MPNowPlayingInfoPropertyIsLiveStream: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyIsLiveStream)

A number that denotes whether the Now Playing item is a live stream.

[`let MPNowPlayingInfoPropertyMediaType: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyMediaType)

The media type of the Now Playing item.

[`let MPNowPlayingInfoPropertyPlaybackProgress: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackProgress)

The current progress of the Now Playing item.

[`let MPNowPlayingInfoPropertyPlaybackRate: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackRate)

The playback rate of the Now Playing item.

[`let MPNowPlayingInfoPropertyPlaybackQueueCount: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackQueueCount)

The total number of items in the app’s playback queue.

[`let MPNowPlayingInfoPropertyPlaybackQueueIndex: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackQueueIndex)

The index of the Now Playing item in the app’s playback queue.

[`let MPNowPlayingInfoPropertyServiceIdentifier: String`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyServiceIdentifier)

The service provider associated with the Now Playing item.

[`let MPNowPlayingInfoProperty1x1AnimatedArtwork: String`](/documentation/MediaPlayer/MPNowPlayingInfoProperty1x1AnimatedArtwork)

1:1 (square) animated artwork for the current media item.

[`let MPNowPlayingInfoProperty3x4AnimatedArtwork: String`](/documentation/MediaPlayer/MPNowPlayingInfoProperty3x4AnimatedArtwork)

3:4 (tall) animated artwork for the current media item.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)