---
title: advanceToNextItem()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avqueueplayer/advancetonextitem()
---

# advanceToNextItem()

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

## Declaration

```swift
nonisolated func advanceToNextItem()
```

## Discussion

Discussion Calling this method also removes the current item from the play queue.

## See Also

### Managing the player queue

- [items()](avfoundation/avqueueplayer/items().md)
- [canInsert(_:after:)](avfoundation/avqueueplayer/caninsert(_:after:).md)
- [insert(_:after:)](avfoundation/avqueueplayer/insert(_:after:).md)
- [remove(_:)](avfoundation/avqueueplayer/remove(_:).md)
- [removeAllItems()](avfoundation/avqueueplayer/removeallitems().md)
