Sample Code

Becoming a Now Playable App

Ensure your app is eligible to become the “Now Playing” app by adopting best practices for providing Now Playing Info and registering for Remote Command Center actions.

Download

Overview

Configure the Sample Code Project

Before you run the sample code project in Xcode:

  • See the comments for the NowPlayable protocol in file NowPlayable.swift, to learn what settings and configuration you may want to customize for your use-case.

  • Use the XXXNowPlayableBehavior class (where XXX is your platform of interest) to implement your specific customizations to the standard behavior.

See Also

Now Playing Information

MPNowPlayingInfoCenter

An object that you use to set now-playing information for media being played by your app.

MPNowPlayingInfoLanguageOption

A set of interfaces used to set the language option for the now-playing item.

MPNowPlayingInfoLanguageOptionGroup

A grouped set of language options where only a single language option can be active at a time.

Language Option Characteristic Constants

The constants used to define language characteristics.