Class

AVSampleBufferDisplayLayer

An object that displays compressed or uncompressed video frames.

Declaration

@interface AVSampleBufferDisplayLayer : CALayer

Topics

Initiating Media Data Requests

- requestMediaDataWhenReadyOnQueue:usingBlock:

Instructs the target to invoke a client-supplied block repeatedly, at its convenience, in order to gather sample buffers for display.

readyForMoreMediaData

A Boolean value that indicates the readiness of the layer to accept more sample buffers.

- stopRequestingMediaData

Cancels any current media data request.

Flushing Sample Buffers

- flush

Instructs the layer to discard any enqueued sample buffers that are pending.

- flushAndRemoveImage

Instructs the layer to discard pending enqueued sample buffers and remove any currently displayed image.

Configuring the Timebase

controlTimebase

The layer's control timebase, which governs how timestamps are interpreted.

Enqueuing the Sample Buffer

- enqueueSampleBuffer:

Sends a sample buffer for display.

Setting the Video Gravity

videoGravity

A string defining how the video is displayed within the bounds rect of a sample buffer display layer.

AVLayerVideoGravity

A value that defines how the video is displayed within a layer’s bounds rectangle.

Getting Display Layer Settings

status

The ability of the display layer to be used for enqueuing sample buffers.

AVQueuedSampleBufferRenderingStatus

The statuses for sample buffer rendering.

Handling Errors

error

The error that caused the failure.

AVSampleBufferDisplayLayerFailedToDecodeNotification

Posted when a buffer display layer failed to decode.

Relationships

Inherits From

See Also

Media Playback

AVPlayer

An object that provides the interface to control the player’s transport behavior.

AVQueuePlayer

A player used to play a number of items in sequence.

AVPlayerLayer

An object that manages a player's visual output.

AVPlayerItem

An object used to model the timing and presentation state of an asset played by the player.

AVPlayerItemMetadataCollector

An object used to capture the date range metadata defined for an HTTP Live Streaming asset.

AVPlayerItemTrack

An object used to modify the presentation state of an asset track being presented by a player.

AVSynchronizedLayer

An object used to synchronize with a specific player item.

AVPlayerMediaSelectionCriteria

An object that specifies the preferred languages and media characteristics for a player.

AVSampleBufferAudioRenderer

An object used to decompress audio and play compressed or uncompressed audio.

AVSampleBufferRenderSynchronizer

An object used to synchronize multiple queued sample buffers to a single timeline.

AVRouteDetector

An object that detects the presences of media playback routes.