---
title: automaticallyPublishesNowPlayingInfo
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpnowplayingsession/automaticallypublishesnowplayinginfo
---

# automaticallyPublishesNowPlayingInfo

A Boolean that indicates whether Now Playing info automatically publishes.

## Declaration

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

## Discussion

Discussion You can set Now Playing information keys for automatic publishing on nowPlayingInfo. important: If you set automaticallyPublishesNowPlayingInfo to true, don’t use nowPlayingInfoCenter.

## See Also

### Configuring Now Playing information

- [nowPlayingInfoCenter](mediaplayer/mpnowplayingsession/nowplayinginfocenter.md)
