https://github.com/lepips/mpvui
Swift wrapper for mpv
https://github.com/lepips/mpvui
mpv swift swiftpackage swiftui
Last synced: 8 months ago
JSON representation
Swift wrapper for mpv
- Host: GitHub
- URL: https://github.com/lepips/mpvui
- Owner: LePips
- License: mit
- Created: 2024-08-24T04:57:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T20:35:27.000Z (almost 2 years ago)
- Last Synced: 2025-03-31T14:14:48.547Z (about 1 year ago)
- Topics: mpv, swift, swiftpackage, swiftui
- Language: Swift
- Homepage:
- Size: 73.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MPVUI
### 🚧 Work in progress 🛠️
`MPVUI` is a wrapper around mpv for more compatible audio and video media playback on iOS, tvOS, and macOS.
Currently utilizing [MPVKit](https://github.com/mpvkit/MPVKit) for easy mpv access through Swift Package Manager.
### Usage
The `MPVClient` object is core wrapper around mpv, containing commands to load, play, and customize media playback.
```swift
// mp3 example
let client = MPVClient()
try! client._command(.loadfile, arguments: "music.mp3", "replace")
client.play()
```
### Construction
- [ ] player views for video playback
- [ ] API around commands
- [ ] better event observation
- [ ] provide route to decouple from mpvkit