Replaces the current player item with a new player item.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
The player item replacement occurs immediately and
item becomes the player’s
currentItem. Calling this method with the player’s current player item has no effect.
You can use Key-value observing to observe changes to the player’s
The new item must have the same compositor as the item it replaces, or have no compositor.
Begins playback of the current item.
Pauses playback of the current item.
The current playback rate.
The action to perform when the current player item has finished playing.