---
title: "openToPlay(_:)"
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: "mediaplayer/mpsystemmusicplayercontroller/opentoplay(_:)"
---

# openToPlay(_:)

Opens the Music app and plays the designated videos.

## Declaration

```swift
func openToPlay(_ queueDescriptor: MPMusicPlayerQueueDescriptor)
```

## Parameters

- `queueDescriptor`: The queue descriptor that contains the video items to play.

## Discussion

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.
