<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVQueuePlayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVQueuePlayer"
  },
  "title" : "AVQueuePlayer"
}
-->

# AVQueuePlayer

An object that plays a sequence of player items.

```
class AVQueuePlayer
```

## Overview

Use an instance of this class to manage a queue of player items.

## Topics

### Creating a queue player

[`queuePlayerWithItems:`](/documentation/AVFoundation/AVQueuePlayer/queuePlayerWithItems:)

Returns an object that plays a queue of items.

[`init(items:)`](/documentation/AVFoundation/AVQueuePlayer/init(items:))

Creates an object that plays a queue of items.

### Managing the player queue

[`items()`](/documentation/AVFoundation/AVQueuePlayer/items())

Returns an array of the currently enqueued items.

[`advanceToNextItem()`](/documentation/AVFoundation/AVQueuePlayer/advanceToNextItem())

Ends playback of the current item and starts playback of the next item in the player’s queue.

[`canInsert(_:after:)`](/documentation/AVFoundation/AVQueuePlayer/canInsert(_:after:))

Returns a Boolean value that indicates whether you can insert a player item into the player’s queue.

[`insert(_:after:)`](/documentation/AVFoundation/AVQueuePlayer/insert(_:after:))

Inserts a player item after another player item in the queue.

[`remove(_:)`](/documentation/AVFoundation/AVQueuePlayer/remove(_:))

Removes a given player item from the queue.

[`removeAllItems()`](/documentation/AVFoundation/AVQueuePlayer/removeAllItems())

Removes all player items from the queue.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)