<!--
{
  "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

[`+  defaultCenter`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/default())

Returns the singleton Now Playing info center.

[`nowPlayingInfo`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/nowPlayingInfo)

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

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

The type of media currently playing.

[`supportedAnimatedArtworkKeys`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/supportedAnimatedArtworkKeys)

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

### Setting the playback state in macOS

[`playbackState`](/documentation/MediaPlayer/MPNowPlayingInfoCenter/playbackState)

The current playback state of the app.

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

The playback state of the app.

### Accessing Now Playing metadata properties

Provide specific details about the currently playing item.

[`MPNowPlayingInfoCollectionIdentifier`](/documentation/MediaPlayer/MPNowPlayingInfoCollectionIdentifier)

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

[`MPNowPlayingInfoPropertyAdTimeRanges`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyAdTimeRanges)

A list of ad breaks in the Now Playing item.

[`MPNowPlayingInfoPropertyAvailableLanguageOptions`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyAvailableLanguageOptions)

The available language option groups for the Now Playing item.

[`MPNowPlayingInfoPropertyAssetURL`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyAssetURL)

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

[`MPNowPlayingInfoPropertyChapterCount`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyChapterCount)

The total number of chapters in the Now Playing item.

[`MPNowPlayingInfoPropertyChapterNumber`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyChapterNumber)

The number corresponding to the currently playing chapter.

[`MPNowPlayingInfoPropertyCreditsStartTime`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyCreditsStartTime)

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

[`MPNowPlayingInfoPropertyCurrentLanguageOptions`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyCurrentLanguageOptions)

The currently active language options for the Now Playing item.

[`MPNowPlayingInfoPropertyCurrentPlaybackDate`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyCurrentPlaybackDate)

The date associated with the current elapsed playback time.

[`MPNowPlayingInfoPropertyDefaultPlaybackRate`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyDefaultPlaybackRate)

The default playback rate for the Now Playing item.

[`MPNowPlayingInfoPropertyElapsedPlaybackTime`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyElapsedPlaybackTime)

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

[`MPNowPlayingInfoPropertyExcludeFromSuggestions`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyExcludeFromSuggestions)

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

[`MPNowPlayingInfoPropertyExternalContentIdentifier`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyExternalContentIdentifier)

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

[`MPNowPlayingInfoPropertyExternalUserProfileIdentifier`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyExternalUserProfileIdentifier)

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

[`MPNowPlayingInfoPropertyInternationalStandardRecordingCode`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyInternationalStandardRecordingCode)

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

[`MPNowPlayingInfoPropertyIsLiveStream`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyIsLiveStream)

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

[`MPNowPlayingInfoPropertyMediaType`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyMediaType)

The media type of the Now Playing item.

[`MPNowPlayingInfoPropertyPlaybackProgress`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackProgress)

The current progress of the Now Playing item.

[`MPNowPlayingInfoPropertyPlaybackRate`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackRate)

The playback rate of the Now Playing item.

[`MPNowPlayingInfoPropertyPlaybackQueueCount`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackQueueCount)

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

[`MPNowPlayingInfoPropertyPlaybackQueueIndex`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyPlaybackQueueIndex)

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

[`MPNowPlayingInfoPropertyServiceIdentifier`](/documentation/MediaPlayer/MPNowPlayingInfoPropertyServiceIdentifier)

The service provider associated with the Now Playing item.

[`MPNowPlayingInfoProperty1x1AnimatedArtwork`](/documentation/MediaPlayer/MPNowPlayingInfoProperty1x1AnimatedArtwork)

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

[`MPNowPlayingInfoProperty3x4AnimatedArtwork`](/documentation/MediaPlayer/MPNowPlayingInfoProperty3x4AnimatedArtwork)

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

## Relationships

### Conforms To

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

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

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

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

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

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

### Inherits From

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

---

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)