Instance Method

replaceCurrentItemWithPlayerItem:

Replaces the current player item with a different one.

Declaration

- (void)replaceCurrentItemWithPlayerItem:(WKAudioFilePlayerItem *)item;

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.

See Also

Creating a Player

+ playerWithPlayerItem:

Creates and returns a player initialized with the specified player item.

Deprecated