<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayer/replaceCurrentItem(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayer(im)replaceCurrentItemWithPlayerItem:"
  },
  "title" : "replaceCurrentItem(with:)"
}
-->

# replaceCurrentItem(with:)

Replaces the current item with a new item.

```
nonisolated func replaceCurrentItem(with item: AVPlayerItem?)
```

## Parameters

`item`

The new item for the player object to play.

## Discussion

The player item replacement occurs immediately and the item becomes the player’s [`currentItem`](/documentation/AVFoundation/AVPlayer/currentItem). Calling this method with the player’s current player item has no effect.

Replacing the current item removes the previous item from the player’s queue. An item that plays an HTTP Live Streaming (HLS) asset stops requesting playlists and media segments when the player removes it.

---

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)