Class

AVSampleBufferRenderSynchronizer

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

Declaration

@interface AVSampleBufferRenderSynchronizer : NSObject

Overview

This class synchronizes multiple objects that conform to AVQueuedSampleBufferRendering to a single timeline.

Topics

Working with Time Observers

- addBoundaryTimeObserverForTimes:queue:usingBlock:

Requests invocation of a block when specified times are traversed during normal rendering.

- addPeriodicTimeObserverForInterval:queue:usingBlock:

Requests invocation of a block during rendering at specified time intervals.

- removeTimeObserver:

Cancels the specified time observer.

Working with Renderers

renderers

An array of queued sample buffer renderers currently attached to the synchronizer.

- addRenderer:

Adds a renderer to the list of renderers under the synchronizer's control.

- removeRenderer:atTime:completionHandler:

Removes a renderer from the synchronizer.

Accessing Time Information

timebase

The synchronizer's rendering timebase, which governs how timestamps are interpreted.

- setRate:time:

Set's the timebase's rate and time.

rate

The current playback rate.

AVSampleBufferRenderSynchronizerRateDidChangeNotification

The synchronizer's rendering rate changed.

- currentTime

Returns the current time of the synchronizer.

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.

AVSampleBufferDisplayLayer

An object that displays compressed or uncompressed video frames.

AVRouteDetector

An object that detects the presences of media playback routes.