<!--
{
  "availability" : [
    "watchOS: 2.0.0 - 6.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKAudioFilePlayer/replaceCurrentItem(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKAudioFilePlayer(im)replaceCurrentItemWithPlayerItem:"
  },
  "title" : "replaceCurrentItem(with:)"
}
-->

# replaceCurrentItem(with:)

Replaces the current player item with a different one.

```
func replaceCurrentItem(with item: WKAudioFilePlayerItem?)
```

## Parameters

`item`

The player item whose contents you want to play.

## Discussion

The default implementation of this method does nothing. Subclasses can override it to implement support for swapping out the current player item for a new one.

---

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)