Control audio playback and handle requests to add media using SiriKit Media Intents.
- Note: This sample code project is associated with WWDC 2020 session Expand Your SiriKit Media Intents to More Platforms.
Before you run the sample code project in Xcode:
-
Create an App Group for
com.example.apple-samplecode.ControlAudio.Shared
in your developer portal. -
Create an App ID for
com.example.apple-samplecode.ControlAudio
in your developer portal and enable it for App Groups, specifying the group you created in the previous step. Additionally, enable SiriKit. -
Create a Music ID for
music.com.example.apple-samplecode.ControlAudio
in your developer portal. -
Create a Key for the MusicKit service and create a developer token. For more information on this process, see Getting Keys and Creating Tokens.
-
Copy the developer token to the
developerToken
variable in theMusicKitAPIController.swift
file. -
Create a provisioning profile for
com.example.apple-samplecode.ControlAudio
andcom.example.apple-samplecode.ControlAudio.ControlAudioExtension
in your developer portal. -
Associate the provisioning profiles with the project in Xcode signing settings.