Initializer

init(player:templateItem:)

Returns a player looper instance configured to loop the full duration of the specified player item in the queue player.

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

init(player: AVQueuePlayer, templateItem: AVPlayerItem, timeRange: CMTimeRange)

Creates a player looper instance to repeat the specified time range of a player item using a queue player.