<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INPlayMediaIntentResponse/nowPlayingInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INPlayMediaIntentResponse(py)nowPlayingInfo"
  },
  "title" : "nowPlayingInfo"
}
-->

# nowPlayingInfo

The now-playing information, such as title and artwork, for the media.

```
var nowPlayingInfo: [String : Any]? { get set }
```

## Discussion

In your [`confirm(intent:completion:)`](/documentation/Intents/INPlayMediaIntentHandling/confirm(intent:completion:)) response, provide now-playing information for the media so Siri can display it to the user at the appropriate time, such as after they connect headphones to their iPhone.

To create the now-playing information dictionary, use the media item property keys from the Media Player framework (see <doc://com.apple.documentation/documentation/MediaPlayer/general-media-item-property-keys> for the list of keys). To include artwork in the dictionary, use [`INImage`](/documentation/Intents/INImage) instead of <doc://com.apple.documentation/documentation/UIKit/UIImage> to create the image object. Media intent shortcuts don’t support <doc://com.apple.documentation/documentation/UIKit/UIImage> objects in this dictionary.

The listing below creates a now-playing information dictionary.

```swift
public static func nowPlayingInfo(for episode: PodcastEpisode, in container: LibraryItemContainer, forShortcut: Bool = false) -> [String: Any] {
    var nowPlayingInfo: [String: Any] = [MPMediaItemPropertyTitle: episode.title,
                                         MPMediaItemPropertyMediaType: MPMediaType.podcast.rawValue,
                                         MPMediaItemPropertyPodcastTitle: container.title,
                                         MPMediaItemPropertyPlaybackDuration: NSNumber(value: audioFileDuration)]

    if forShortcut {
        nowPlayingInfo[MPMediaItemPropertyArtwork] = INImage(named: container.artworkName)
    } else {
        if let image = UIImage(named: container.artworkName) {
            let artwork = MPMediaItemArtwork(boundsSize: CGSize(width: 60, height: 60)) { (_) -> UIImage in
                return image
            }
            
            nowPlayingInfo[MPMediaItemPropertyArtwork] = artwork
        }
    }
    
    return nowPlayingInfo
}
```

---

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)