Contents

AVPlaybackCoordinator

An object that coordinates the playback of players in a connected group.

Declaration

class AVPlaybackCoordinator

Overview

The framework provides two playback coordinator subclasses that manage different types of player objects:

  • AVPlayerPlaybackCoordinator coordinates the state of AVPlayer objects. If your app uses AVPlayer, continue to use its standard interfaces to control playback. The coordinator intercepts changes to the player’s rate and time, and propagates them to other players in the group.

  • AVDelegatingPlaybackCoordinator coordinates the state of custom player objects. If your app uses a custom player, such as one that renders media using AVSampleBufferDisplayLayer and AVSampleBufferAudioRenderer, use this object to coordinate group playback. Adopt the coordinator’s delegate protocol so that your player responds to the commands that the coordinator issues.

Topics

Configuring playback policies

Suspending state coordination

Observing suspension reasons

Observing other participants

Coordinating with group sessions

See Also

SharePlay