Kotlin multiplatform wrapper for mpv
- Linux (x86_64, arm64)
- Windows (x86_64)
- macOS (x86_64, arm64)
- Android (armeabi-v7a, arm64-v8a, x86, x86_64)
- JVM
implementation("dev.zt64.mpvkt:mpvkt:x.y.z")
// Create a mpv instance by calling the constructor
val mpv = Mpv()
mpv.requestLogMessages(MpvLogLevel.VERBOSE)
mpv.setProperty("vo", "gpu")
// Set up the mpv instance
mpv.init()
mpv.command("loadfile", "path/to/file.mp4")
while (true) {
val event = mpv.waitEvent(1000)
if (event is MpvEvent.EndFile) break
}
mpv.close()
Contributions are welcome!
This project is licensed under the GNU GPL v3.0 License - see the LICENSE file for details