---
title: MPNowPlayingInfoCenter
framework: mediaplayer
role: symbol
role_heading: Class
path: mediaplayer/mpnowplayinginfocenter
---

# MPNowPlayingInfoCenter

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

## Declaration

```swift
class MPNowPlayingInfoCenter
```

## Mentioned in

Providing animated artwork for media items

## Overview

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 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 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 properties: MPMediaItemPropertyAlbumTitle MPMediaItemPropertyAlbumTrackCount MPMediaItemPropertyAlbumTrackNumber MPMediaItemPropertyArtist MPMediaItemPropertyArtwork MPMediaItemPropertyComposer MPMediaItemPropertyDiscCount MPMediaItemPropertyDiscNumber MPMediaItemPropertyGenre MPMediaItemPropertyMediaType MPMediaItemPropertyPersistentID MPMediaItemPropertyPlaybackDuration MPMediaItemPropertyTitle You don’t have direct control over what information the system displays, or its formatting. You set the values in the 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 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 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

- [default()](mediaplayer/mpnowplayinginfocenter/default().md)
- [nowPlayingInfo](mediaplayer/mpnowplayinginfocenter/nowplayinginfo.md)
- [MPNowPlayingInfoMediaType](mediaplayer/mpnowplayinginfomediatype.md)
- [supportedAnimatedArtworkKeys](mediaplayer/mpnowplayinginfocenter/supportedanimatedartworkkeys.md)

### Setting the playback state in macOS

- [playbackState](mediaplayer/mpnowplayinginfocenter/playbackstate.md)
- [MPNowPlayingPlaybackState](mediaplayer/mpnowplayingplaybackstate.md)

### Accessing Now Playing metadata properties

- [MPNowPlayingInfoCollectionIdentifier](mediaplayer/mpnowplayinginfocollectionidentifier.md)
- [MPNowPlayingInfoPropertyAdTimeRanges](mediaplayer/mpnowplayinginfopropertyadtimeranges.md)
- [MPNowPlayingInfoPropertyAvailableLanguageOptions](mediaplayer/mpnowplayinginfopropertyavailablelanguageoptions.md)
- [MPNowPlayingInfoPropertyAssetURL](mediaplayer/mpnowplayinginfopropertyasseturl.md)
- [MPNowPlayingInfoPropertyChapterCount](mediaplayer/mpnowplayinginfopropertychaptercount.md)
- [MPNowPlayingInfoPropertyChapterNumber](mediaplayer/mpnowplayinginfopropertychapternumber.md)
- [MPNowPlayingInfoPropertyCreditsStartTime](mediaplayer/mpnowplayinginfopropertycreditsstarttime.md)
- [MPNowPlayingInfoPropertyCurrentLanguageOptions](mediaplayer/mpnowplayinginfopropertycurrentlanguageoptions.md)
- [MPNowPlayingInfoPropertyCurrentPlaybackDate](mediaplayer/mpnowplayinginfopropertycurrentplaybackdate.md)
- [MPNowPlayingInfoPropertyDefaultPlaybackRate](mediaplayer/mpnowplayinginfopropertydefaultplaybackrate.md)
- [MPNowPlayingInfoPropertyElapsedPlaybackTime](mediaplayer/mpnowplayinginfopropertyelapsedplaybacktime.md)
- [MPNowPlayingInfoPropertyExcludeFromSuggestions](mediaplayer/mpnowplayinginfopropertyexcludefromsuggestions.md)
- [MPNowPlayingInfoPropertyExternalContentIdentifier](mediaplayer/mpnowplayinginfopropertyexternalcontentidentifier.md)
- [MPNowPlayingInfoPropertyExternalUserProfileIdentifier](mediaplayer/mpnowplayinginfopropertyexternaluserprofileidentifier.md)
- [MPNowPlayingInfoPropertyInternationalStandardRecordingCode](mediaplayer/mpnowplayinginfopropertyinternationalstandardrecordingcode.md)
- [MPNowPlayingInfoPropertyIsLiveStream](mediaplayer/mpnowplayinginfopropertyislivestream.md)
- [MPNowPlayingInfoPropertyMediaType](mediaplayer/mpnowplayinginfopropertymediatype.md)
- [MPNowPlayingInfoPropertyPlaybackProgress](mediaplayer/mpnowplayinginfopropertyplaybackprogress.md)
- [MPNowPlayingInfoPropertyPlaybackRate](mediaplayer/mpnowplayinginfopropertyplaybackrate.md)
- [MPNowPlayingInfoPropertyPlaybackQueueCount](mediaplayer/mpnowplayinginfopropertyplaybackqueuecount.md)
- [MPNowPlayingInfoPropertyPlaybackQueueIndex](mediaplayer/mpnowplayinginfopropertyplaybackqueueindex.md)
- [MPNowPlayingInfoPropertyServiceIdentifier](mediaplayer/mpnowplayinginfopropertyserviceidentifier.md)
- [MPNowPlayingInfoProperty1x1AnimatedArtwork](mediaplayer/mpnowplayinginfoproperty1x1animatedartwork.md)
- [MPNowPlayingInfoProperty3x4AnimatedArtwork](mediaplayer/mpnowplayinginfoproperty3x4animatedartwork.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Now Playing information

- [Becoming a now playable app](mediaplayer/becoming-a-now-playable-app.md)
- [MPNowPlayingSession](mediaplayer/mpnowplayingsession.md)
- [MPNowPlayingInfoLanguageOption](mediaplayer/mpnowplayinginfolanguageoption.md)
- [MPNowPlayingInfoLanguageOptionGroup](mediaplayer/mpnowplayinginfolanguageoptiongroup.md)
- [Language option characteristic constants](mediaplayer/language-option-characteristic-constants.md)
