Contents

init(player:templateItem:)

Creates a player looper that continuously plays the full duration of a player item.

Declaration

convenience init(player: AVQueuePlayer, templateItem itemToLoop: AVPlayerItem)

Parameters

  • player:

    The queue player to use for playback. The player must not be nil.

  • itemToLoop:

    The player item to loop, which must not be nil.

Return Value

An new instance of AVPlayerLooper.

Discussion

Creating an instance of this class using this method is equivalent to calling init(player:templateItem:timeRange:) and passing a value of invalid for the timeRange parameter.

See Also

Creating a player looper