Type Method

playerWithPlayerItem:

Returns a new player initialized to play the specified player item.

Declaration

+ (instancetype)playerWithPlayerItem:(AVPlayerItem *)item;

Parameters

item

The player item to play.

Return Value

A new player initialized to play item.

See Also

Creating a Player

- initWithURL:

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

+ playerWithURL:

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

- initWithPlayerItem:

Creates a new player to play the specified player item.