An object that displays compressed or uncompressed video frames.
SDKs
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 10.2+
Framework
- AVFoundation
Declaration
class AVSampleBufferDisplayLayer : CALayer
An object that displays compressed or uncompressed video frames.
SDKs
Framework
class AVSampleBufferDisplayLayer : CALayer
func request Media Data When Ready(on: Dispatch Queue, using: () -> Void)
Instructs the target to invoke a client-supplied block repeatedly, at its convenience, in order to gather sample buffers for display.
var is Ready For More Media Data: Bool
A Boolean value that indicates the readiness of the layer to accept more sample buffers.
func stop Requesting Media Data()
Cancels any current media data request.
func flush()
Instructs the layer to discard any enqueued sample buffers that are pending.
func flush And Remove Image()
Instructs the layer to discard pending enqueued sample buffers and remove any currently displayed image.
var control Timebase: CMTimebase?
The layer's control timebase, which governs how timestamps are interpreted.
func enqueue(CMSample Buffer)
Sends a sample buffer for display.
var video Gravity: AVLayer Video Gravity
A string defining how the video is displayed within the bounds rect of a sample buffer display layer.
struct AVLayer Video Gravity
A value that defines how the video is displayed within a layer’s bounds rectangle.
var status: AVQueued Sample Buffer Rendering Status
The ability of the display layer to be used for enqueuing sample buffers.
enum AVQueued Sample Buffer Rendering Status
The statuses for sample buffer rendering.
var error: Error?
The error that caused the failure.
let AVSample Buffer Display Layer Failed To Decode Notification Error Key: String
The key for the corresponding error.
static let AVSample Buffer Display Layer Failed To Decode: NSNotification .Name
Posted when a buffer display layer failed to decode.
class AVPlayer
An object that provides the interface to control the player’s transport behavior.
class AVQueue Player
A player used to play a number of items in sequence.
class AVPlayer Layer
An object that manages a player's visual output.
class AVPlayer Item
An object used to model the timing and presentation state of an asset played by the player.
class AVPlayer Item Metadata Collector
An object used to capture the date range metadata defined for an HTTP Live Streaming asset.
class AVPlayer Item Track
An object used to modify the presentation state of an asset track being presented by a player.
class AVSynchronized Layer
An object used to synchronize with a specific player item.
class AVPlayer Media Selection Criteria
An object that specifies the preferred languages and media characteristics for a player.
class AVSample Buffer Audio Renderer
An object used to decompress audio and play compressed or uncompressed audio.
class AVSample Buffer Render Synchronizer
An object used to synchronize multiple queued sample buffers to a single timeline.
class AVRoute Detector
An object that detects the presences of media playback routes.