replaceCurrentItem(with:)
Replaces the current player item with a different one.
Declaration
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.