Instance Method

add(_:)

Adds the specified player item output object to the receiver.

Declaration

func add(_ output: AVPlayerItemOutput)

Parameters

output

The player item output object to associate with the item.

Discussion

When you add an AVPlayerItemOutput object to an item, the samples associated with that output object are processed according to the rules for mixing, composing, or excluding content that the AVPlayer object honors for the specific media type. For example, video media is composed according to the instructions provided by the player item’s video composition object and audio media is mixed according to the parameters of its audio mix object.

See Also

Managing the Item’s Outputs

var outputs: [AVPlayerItemOutput]

An array of outputs associated with the player item.

func remove(AVPlayerItemOutput)

Removes the specified player item output object from the receiver.

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