Initializer

init(playerItem:)

Creates a new player to play the specified player item.

Declaration

init(playerItem item: AVPlayerItem?)

Parameters

item

The player item to play.

Return Value

A new player initialized to play item.

See Also

Creating a Player

init(url: URL)

Creates a new player to play a single audiovisual resource referenced by a given URL.