One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVAssetWriterInput.SampleBufferReceiver

class · iOS 26.0+ · SDK 27.1

class SampleBufferReceiver

Provides an interface for writing sample buffers to an input.

Members (3)

method · iOS 26.0+

appendImmediately

TypeScript
appendImmediately(sampleBuffer: _CoreMedia_CMReadySampleBuffer<_CoreMedia_CMSampleBuffer_DynamicContent>): boolean
Swift declaration
func appendImmediately(_ sampleBuffer: CMReadySampleBuffer<CMSampleBuffer.DynamicContent>) throws -> Bool

Appends the sample buffer synchronously if the input is ready for more media data. - Parameter sampleBuffer: The sample buffer to be appended - Returns: Returns true if the append was successful, false if the input was not ready for more media data. - Throws: An error if the underlying writer failed.

method · iOS 26.0+

append

TypeScript
append(sampleBuffer: _CoreMedia_CMReadySampleBuffer<_CoreMedia_CMSampleBuffer_DynamicContent>): Promise<void>
Swift declaration
nonisolated(nonsending) func append(_ sampleBuffer: CMReadySampleBuffer<CMSampleBuffer.DynamicContent>) async throws

Suspends until the input is ready for more media data, then appends the sample buffer. - Parameter sampleBuffer: The sample buffer to be appended. - Throws: An error if the underlying writer failed.

method · iOS 26.0+

finish

TypeScript
finish(): void
Swift declaration
func finish()

Indicates to the AVAssetWriter that no more buffers will be appended to this receiver.

Skipped declarations

No declarations were skipped in this snapshot.

All AVFoundation types →