Initializes a new player item for a given asset.


convenience init(asset: AVAsset)



The AVAsset to be played.

Return Value

A new player item, initialized to play asset.

See Also

Creating a Player Item

init(url: URL)

Initializes a player item with a given URL.

init(asset: AVAsset, automaticallyLoadedAssetKeys: [String]?)

Initializes a player item with the specified asset and the asset keys to be automatically loaded.

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