---
title: "addPlayer(_:)"
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: "mediaplayer/mpnowplayingsession/addplayer(_:)"
---

# addPlayer(_:)

Adds a player to the session.

## Declaration

```swift
func addPlayer(_ player: AVPlayer)
```

## Parameters

- `player`: The player instance to add to the session.

## See Also

### Managing players

- [players](mediaplayer/mpnowplayingsession/players.md)
- [removePlayer(_:)](mediaplayer/mpnowplayingsession/removeplayer(_:).md)
