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

# outputSequenceWasFlushed(_:)

Tells the delegate that a new sample sequence is commencing.

## Declaration

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

## Parameters

- `output`: The output object that sent the message.

## Discussion

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.

## See Also

### Responding to pixel buffer changes

- [outputMediaDataWillChange(_:)](avfoundation/avplayeritemoutputpulldelegate/outputmediadatawillchange(_:).md)
