---
title: resetFrameBuffer()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avcapturebroadcastvideooutput/resetframebuffer()
---

# resetFrameBuffer()

Tells the broadcast video output to reset the frame buffer and drop all currently buffered frames.

## Declaration

```swift
func resetFrameBuffer()
```

## Discussion

Discussion This method can be called when buffered video frames should be dropped. This will force all those frames to be dropped and reset the buffered frame count to 0. Use this method in scenarios where you need to clear pending frames, such as: Pausing or stopping broadcast: Drop pending frames that should not be transmitted Reducing accumulated latency: If buffering has built up significant delay, reset to return to real-time output

## See Also

### Related Documentation

- [maxBufferedFrameCount](avfoundation/avcapturebroadcastvideooutput/maxbufferedframecount.md)

### Managing Video Output

- [videoSettings](avfoundation/avcapturebroadcastvideooutput/videosettings.md)
- [maxBufferedFrameCount](avfoundation/avcapturebroadcastvideooutput/maxbufferedframecount.md)
- [maxSupportedBufferedFrameCount](avfoundation/avcapturebroadcastvideooutput/maxsupportedbufferedframecount.md)
- [droppedFrameReplacementPolicy](avfoundation/avcapturebroadcastvideooutput/droppedframereplacementpolicy-swift.property.md)
