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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software