Contents

openToPlay(_:)

Opens the Music app and plays the designated videos.

Declaration

func openToPlay(_ queueDescriptor: MPMusicPlayerQueueDescriptor)

Parameters

  • queueDescriptor:

    The queue descriptor that contains the video items to play.

Discussion

This method launches the user’s Music app, opens to the Now Playing screen, and begins playback of the video. If the Music app isn’t installed on the device, the system ignores this method and doesn’t play the videos.