Contents

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 nil to append the item to the queue.

See Also

Managing the player queue