iOS Developer Library

Developer

AVFoundation Framework Reference AVPlayerItemOutputPushDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

AVPlayerItemOutputPushDelegate

Inheritance


Not Applicable

Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 7.0 and later.

The AVPlayerItemOutputPushDelegate protocol defines common delegate methods for objects participating in AVPlayerItemOutput push sample output acquisition.

  • Invoked when the output is commencing a new sequence of media data. (required)

    Declaration

    Swift

    optional func outputSequenceWasFlushed(_ output: AVPlayerItemOutput!)

    Objective-C

    - (void)outputSequenceWasFlushed:(AVPlayerItemOutput *)output

    Parameters

    output

    The AVPlayerItemOutput object.

    Discussion

    This method is invoked after any seeking and change in playback direction. If you are maintaining any queued future media data, you may want to discard those objects after receiving this message.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.