Class

AVPlayerItemVideoOutput

An object that coordinates the output of content associated with a Core Video pixel buffer.

Declaration

class AVPlayerItemVideoOutput : AVPlayerItemOutput

Topics

Initializing the Player Item Video Output

init(pixelBufferAttributes: [String : Any]?)

Creates a video output object using the specified pixel buffer attributes.

init(outputSettings: [String : Any]?)

Creates a video output object initialized with the specified output settings.

Accessing the Delegate

func setDelegate(AVPlayerItemOutputPullDelegate?, queue: DispatchQueue?)

Sets the delegate and dispatch queue for the receiver.

var delegate: AVPlayerItemOutputPullDelegate?

The delegate for the video output object.

protocol AVPlayerItemOutputPullDelegate

Methods you can implement to respond to pixel buffer changes.

var delegateQueue: DispatchQueue?

The dispatch queue on which to call delegate methods.

Notifying the Delegate of Changes

func requestNotificationOfMediaDataChange(withAdvanceInterval: TimeInterval)

Tells the receiver that the video out put client is entering a quiescent state.

Getting Pixel Buffer Data

func hasNewPixelBuffer(forItemTime: CMTime) -> Bool

Returns a Boolean value that indicates whether video output is available for the specified item time.

func copyPixelBuffer(forItemTime: CMTime, itemTimeForDisplay: UnsafeMutablePointer<CMTime>?) -> CVPixelBuffer?

Retrieves an image that is appropriate for display at the specified item time, and marks the image as acquired.

Relationships

Inherits From

Conforms To

See Also

Media Item Transfer

class AVPlayerItemOutput

The abstract class that defines the common interface for moving samples from an asset to a player.

protocol AVPlayerItemOutputPushDelegate

Methods you can implement to respond to changes in the media data sequence.

class AVPlayerItemLegibleOutput

An object that can vend media with a legible characteristic as an attributed string.

class AVPlayerItemMetadataOutput

An object used to vend collections of metadata items carried in metadata tracks.

class AVPlayerItemMediaDataCollector

The abstract base for media data collectors.

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