insert(_:after:)
Inserts a player item after another player item in the queue.
Declaration
nonisolated func insert(_ item: AVPlayerItem, after afterItem: AVPlayerItem?)Parameters
- item:
The item to insert into the queue.
- afterItem:
The player item in the queue to follow. Pass
nilto append the item to the queue.