---
title: "replaceCurrentItem(with:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkaudiofileplayer/replacecurrentitem(with:)"
---

# replaceCurrentItem(with:)

Replaces the current player item with a different one.

## Declaration

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

## Parameters

- `item`: The player item whose contents you want to play.

## Discussion

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.

## See Also

### Creating a Player

- [init(playerItem:)](watchkit/wkaudiofileplayer/init(playeritem:).md)
