Contents

nextAvailableSampleBuffer()

Returns the next sample buffer if it is already available.

Declaration

func nextAvailableSampleBuffer() -> AVPlayerItemSampleBufferOutput.SampleBufferInSequence?

Discussion

If no sample buffers are ready, this method will return nil immediately.

This method will race with nextSampleBuffer() for grabbing the generated sample buffer.

See Also

Retrieving sample buffers