Swiftpack.co - Package - michaelnisi/playback

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

michaelnisi/playback

Play audio and video

Playback

The Playback Swift package for iOS plays 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.

FSM

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

Install

📦 Add https://github.com/michaelnisi/playback to your package manifest.

License

MIT License