AVPlayerItemOutputPullDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AVFoundation.framework
Availability
Available in iOS 6.0 and later.
Declared in
AVPlayerItemOutput.h
Related sample code

Overview

The AVPlayerItemOutputPullDelegate protocol defines the methods that are called by an AVPlayerItemVideoOutput object in response to pixel buffer changes.

Tasks

Responding to Pixel Buffer Changes

Instance Methods

outputMediaDataWillChange:

Tells the delegate that new samples are about to arrive.

- (void)outputMediaDataWillChange:(AVPlayerItemOutput *)sender
Parameters
sender

The output object that sent the message.

Discussion

You can use this method to prepare for any new sample data. This method is called at some point after a call to your video output object’s requestNotificationOfMediaDataChangeWithAdvanceInterval: method.

Availability
  • Available in iOS 6.0 and later.
Declared In
AVPlayerItemOutput.h

outputSequenceWasFlushed:

Tells the delegate that a new sample sequence is commencing.

- (void)outputSequenceWasFlushed:(AVPlayerItemOutput *)output
Parameters
output

The output object that sent the message.

Discussion

This method is called after any attempt to seek or change the playback direction of the item’s content. If you are maintaining any queued future samples, you can use your implementation of this method to discard those samples.

Availability
  • Available in iOS 6.0 and later.
Declared In
AVPlayerItemOutput.h