Swiftpack.co - michaelnisi/playback as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
michaelnisi/playback
Play audio and video
.package(url: "https://github.com/michaelnisi/playback.git", from: "v9.0.0")

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

GitHub

link
Stars: 3
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

🧮 Combine
9 weeks ago

Expose playback state including asset state via Combine publisher.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics