<!--
{
  "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.

---

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)