Contents

flush()

Instructs the receiver to discard pending enqueued sample buffers.

Declaration

func flush()

Discussion

Additional sample buffers can be appended after -flush.

Video-specific notes:

It is not possible to determine which sample buffers have been decoded, so the next frame passed to enqueueSampleBuffer: should be an IDR frame (also known as a key frame or sync sample).