Creates a new player to play the specified player item.
SDKs
- iOS 4.0+
- macOS 10.7+
- tvOS 9.0+
Framework
- AVFoundation
Declaration
init(playerItem item: AVPlayer Item?)
Parameters
item
The player item to play.
Return Value
A new player initialized to play item
.