Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lepips/mpvui

Swift wrapper for mpv
https://github.com/lepips/mpvui

mpv swift swiftpackage swiftui

Last synced: 1 day ago
JSON representation

Swift wrapper for mpv

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