MPVKit is only suitable for learning
libmpvand will not be maintained too frequently.
MPVKit is a collection of tools to use mpv in iOS, macOS, tvOS applications.
It includes scripts to build mpv native libraries.
Ported from kingslay/FFmpegKit
https://github.com/cxfksword/MPVKit.git
swift run build enable-openssl enable-libass enable-ffmpeg enable-mpvswift run mpv --script-opts=osc-visibility=always [url]
swift run mpv --list-optionsUse Shift+i to show stats overlay
Because MPVKit compiles FFmpeg and mpv with the GPL license enabled. So MPVKit follow the GPL license.