Instance Method


Instructs the layer to discard any enqueued sample buffers that are pending.


func flush()


Because it’s not possible to determine which sample buffers have been decoded, the next frame passed to enqueue(_:) should be an IDR frame (also known as a key frame or sync sample).

See Also

Flushing Sample Buffers

func flushAndRemoveImage()

Instructs the layer to discard pending enqueued sample buffers and remove any currently displayed image.