The Playback iOS framework is the audiovisual counterpart of FeedKit for playing audio and video. It manages a playback session, plays audio and video, integrates with remote command center, and persists playback times using NSUbiquitousKeyValueStore.
Playback is used in the Podest podcast app.
Two protocols form the core surface of Playback.
protocol Playback
A Playback
implementation is provided by the framework. It lets you play, pause, and resume FeedKit.Entry
objects.
protocol PlaybackDelegate
The PlaybackDelegate
, implemented by users, is queried by Playback
for user feedback.
Audiovisual playback is asynchronous, a combination of IO and user events. Internally, Playback synchronizes these events and serially handles them, implementing a finite-state machine with five states.
- inactive
- paused
- preparing
- listening
- viewing
Integrate Playback into your Xcode workspace.