One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVSampleBufferGenerator

class · iOS 16.0+ · SDK 27.1

class AVSampleBufferGenerator

Members (5)

static · iOS 16.0+

notifyOfDataReady

TypeScript
static notifyOfDataReady(sbuf: _CoreMedia_CMSampleBuffer, completionHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
class func notifyOfDataReady(for sbuf: CMSampleBuffer) async throws
method · iOS 16.0+

makeSampleBuffer

TypeScript
makeSampleBufferForAddTo(request: AVSampleBufferRequest, batch: AVSampleBufferGeneratorBatch): _CoreMedia_CMSampleBuffer
Swift declaration
func makeSampleBuffer(for request: AVSampleBufferRequest, addTo batch: AVSampleBufferGeneratorBatch) throws -> CMSampleBuffer
method · iOS 16.0+

makeSampleBuffer

TypeScript
makeSampleBufferFor(request: AVSampleBufferRequest): _CoreMedia_CMSampleBuffer
Swift declaration
func makeSampleBuffer(for request: AVSampleBufferRequest) throws -> sending CMSampleBuffer
init · iOS 16.0+

init

TypeScript
static init(asset: AVAsset, timebase?: (_CoreMedia_CMTimebase) | null): AVSampleBufferGenerator
Swift declaration
init(asset: AVAsset, timebase: CMTimebase?)
method · iOS 16.0+

makeBatch

TypeScript
makeBatch(): AVSampleBufferGeneratorBatch
Swift declaration
func makeBatch() -> AVSampleBufferGeneratorBatch

Skipped declarations

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

AVSampleBufferGenerator.init()

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

All AVFoundation types →