Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelnisi/playback
Play audio and video
https://github.com/michaelnisi/playback
Last synced: about 1 month ago
JSON representation
Play audio and video
- Host: GitHub
- URL: https://github.com/michaelnisi/playback
- Owner: michaelnisi
- License: mit
- Created: 2017-06-20T14:55:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-19T18:13:02.000Z (about 3 years ago)
- Last Synced: 2024-10-13T18:45:31.445Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 256 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://developer.apple.com/documentation/mediaplayer/remote_command_center_events), and persists playback times using [NSUbiquitousKeyValueStore](https://developer.apple.com/documentation/foundation/nsubiquitouskeyvaluestore).
Playback is used in the [Podest](https://github.com/michaelnisi/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](https://github.com/michaelnisi/playback/blob/master/LICENSE)