<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPNowPlayingSession/automaticallyPublishesNowPlayingInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPNowPlayingSession(py)automaticallyPublishesNowPlayingInfo"
  },
  "title" : "automaticallyPublishesNowPlayingInfo"
}
-->

# automaticallyPublishesNowPlayingInfo

A Boolean that indicates whether Now Playing info automatically publishes.

```
var automaticallyPublishesNowPlayingInfo: Bool { get set }
```

## Discussion

You can set Now Playing information keys for automatic publishing on <doc://com.apple.documentation/documentation/AVFoundation/AVPlayerItem/nowPlayingInfo>.

> Important:
> If you set `automaticallyPublishesNowPlayingInfo` to `true`, don’t use ``doc://com.apple.mediaplayer/documentation/MediaPlayer/MPNowPlayingSession/nowPlayingInfoCenter``.

---

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)