replaceCurrentItem(with:)
Replaces the current item with a new item.
Declaration
nonisolated func replaceCurrentItem(with item: AVPlayerItem?)Parameters
- item:
The new item for the player object to play.
Mentioned in
Discussion
The player item replacement occurs immediately and the item becomes the player’s currentItem. Calling this method with the player’s current player item has no effect.