One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVPlayerItemSampleBufferOutput

class · iOS 27.0+ · SDK 27.1

class AVPlayerItemSampleBufferOutput

Members (3)

init · iOS 27.0+

init

TypeScript
static init(configuration?: (AVPlayerItemSampleBufferOutputConfiguration) | null): AVPlayerItemSampleBufferOutput
Swift declaration
init(configuration: AVPlayerItemSampleBufferOutputConfiguration?)
method · iOS 27.0+

nextAvailableSampleBuffer

TypeScript
nextAvailableSampleBuffer(): (AVPlayerItemSampleBufferOutput_SampleBufferInSequence) | null
Swift declaration
func nextAvailableSampleBuffer() -> AVPlayerItemSampleBufferOutput.SampleBufferInSequence?

Returns the next sample buffer if it is already available. If no sample buffers are ready, this method will return nil immediately. This method will race with ``nextSampleBuffer()`` for grabbing the generated sample buffer.

method · iOS 27.0+

nextSampleBuffer

TypeScript
nextSampleBuffer(): Promise<(AVPlayerItemSampleBufferOutput_SampleBufferInSequence) | null>
Swift declaration
nonisolated func nextSampleBuffer() async -> AVPlayerItemSampleBufferOutput.SampleBufferInSequence?

Returns next sample buffer once it becomes available. This method will wait indefinitely for the next sample buffer to become available. This method returns nil if the current task is cancelled or if this method is called from a different task. This method will race with ``nextAvailableSampleBuffer()`` for grabbing the generated sample buffer.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVPlayerItemSampleBufferOutput.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All AVFoundation types →