---
title: "outputSequenceWasFlushed(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritemoutputpushdelegate/outputsequencewasflushed(_:)"
---

# outputSequenceWasFlushed(_:)

Tells the delegate that the output is starting a new sequence of media data.

## Declaration

```swift
optional func outputSequenceWasFlushed(_ output: AVPlayerItemOutput)
```

## Parameters

- `output`: The doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayerItemOutput object.

## Discussion

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.
