delegate
A delegate that lets the media player manage the app’s playback queue.
Declaration
weak var delegate: (any MPPlayableContentDelegate)? { get set }Discussion
The delegate responds to external events that trigger a change in the media item that’s playing. An example of such an event would be choosing to play a song from a different album, or requesting suggested content to play next. The app must be able to respond to these events at any time.
To instead respond to events that affect the playback state of the currently playing item, use the MPRemoteCommandEvent class.