One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVSampleBufferVideoRenderer

class · iOS 17.0+ · SDK 27.1

class AVSampleBufferVideoRenderer

Members (18)

get · iOS 17.0+ · Deprecated in iOS 27.0

didFailToDecodeNotification

TypeScript
static get didFailToDecodeNotification(): _Foundation_NSNotification_Name
Swift declaration
class let didFailToDecodeNotification: NSNotification.Name
get · iOS 17.0+ · Deprecated in iOS 27.0

didFailToDecodeNotificationErrorKey

TypeScript
static get didFailToDecodeNotificationErrorKey(): string
Swift declaration
class let didFailToDecodeNotificationErrorKey: String
get · iOS 17.0+ · Deprecated in iOS 27.0

requiresFlushToResumeDecodingDidChangeNotification

TypeScript
static get requiresFlushToResumeDecodingDidChangeNotification(): _Foundation_NSNotification_Name
Swift declaration
class let requiresFlushToResumeDecodingDidChangeNotification: NSNotification.Name
method · iOS 17.4+

displayedPixelBuffer

TypeScript
displayedPixelBuffer(): (_CoreVideo_CVBuffer) | null
Swift declaration
func displayedPixelBuffer() -> CVPixelBuffer?
method · iOS 11.0+ · Deprecated in iOS 27.0

enqueue

TypeScript
enqueue(sampleBuffer: _CoreMedia_CMSampleBuffer): void
Swift declaration
func enqueue(_ sampleBuffer: CMSampleBuffer)
method · iOS 11.0+ · Deprecated in iOS 27.0

flush

TypeScript
flush(): void
Swift declaration
func flush()
method · iOS 17.0+ · Deprecated in iOS 27.0

flush

TypeScript
flushRemovingDisplayedImageCompletionHandler(removeDisplayedImage: boolean, handler?: ((() => void)) | null): void
Swift declaration
func flush(removingDisplayedImage removeDisplayedImage: Bool) async
init

init

TypeScript
static init(): AVSampleBufferVideoRenderer
Swift declaration
init()
method · iOS 17.4+

loadVideoPerformanceMetrics

TypeScript
loadVideoPerformanceMetrics(completionHandler: ((arg0: (AVVideoPerformanceMetrics) | null) => void)): void
Swift declaration
var videoPerformanceMetrics: AVVideoPerformanceMetrics? { get async }
method · iOS 11.0+ · Deprecated in iOS 27.0

requestMediaDataWhenReady

TypeScript
requestMediaDataWhenReady(queue: _Dispatch_DispatchQueue, block: (() => void)): void
Swift declaration
func requestMediaDataWhenReady(on queue: dispatch_queue_t, using block: @escaping @Sendable () -> Void)
method · iOS 11.0+ · Deprecated in iOS 27.0

stopRequestingMediaData

TypeScript
stopRequestingMediaData(): void
Swift declaration
func stopRequestingMediaData()
get · iOS 17.0+ · Deprecated in iOS 27.0

error

TypeScript
get error(): (NativeError) | null
Swift declaration
var error: (any Error)? { get }
get · iOS 14.5+ · Deprecated in iOS 27.0

hasSufficientMediaDataForReliablePlaybackStart

TypeScript
get hasSufficientMediaDataForReliablePlaybackStart(): boolean
Swift declaration
var hasSufficientMediaDataForReliablePlaybackStart: Bool { get }
get · iOS 11.0+ · Deprecated in iOS 27.0

isReadyForMoreMediaData

TypeScript
get isReadyForMoreMediaData(): boolean
Swift declaration
var isReadyForMoreMediaData: Bool { get }
get · iOS 17.0+ · Deprecated in iOS 27.0

requiresFlushToResumeDecoding

TypeScript
get requiresFlushToResumeDecoding(): boolean
Swift declaration
var requiresFlushToResumeDecoding: Bool { get }
get · iOS 17.0+ · Deprecated in iOS 27.0

status

TypeScript
get status(): AVQueuedSampleBufferRenderingStatus
Swift declaration
var status: AVQueuedSampleBufferRenderingStatus { get }
get · iOS 26.0+

recommendedPixelBufferAttributes

TypeScript
get recommendedPixelBufferAttributes(): _CoreVideo_CVPixelBufferAttributes
Swift declaration
var recommendedPixelBufferAttributes: CVPixelBufferAttributes { get }

Recommended pixel buffer attributes for optimal performance when using CMSampleBuffers containing CVPixelbuffers. The returned attributes are not sufficient for pixel buffer creation. Use ``CVPixelBufferAttributes/init?(merging:)`` to merge these with other required attributes.

set · iOS 17.4+

presentationTimeExpectation

TypeScript
set presentationTimeExpectation(value: AVSampleBufferVideoRenderer_PresentationTimeExpectation)
Swift declaration
var presentationTimeExpectation: AVSampleBufferVideoRenderer.PresentationTimeExpectation { get set }

Specifies the expected upcoming PTS values for the samples that will be enqueued. The purpose is to enable power optimizations.

Skipped declarations

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

AVSampleBufferVideoRenderer.presentationTimeExpectation

The iOS SDK compiler rejected this binding: getter for 'presentationTimeExpectation' is unavailable

All AVFoundation types →