expo-libmpv
v0.5.11
Published
A libmpv Fabric component for Android
Maintainers
Readme
expo-libmpv
A libmpv native component for Android
Usage
I only plan on supporting Android.
iOS support contributions are welcome, but I have no way to test it.
It uses the new Fabric architecture. This replaces react-native-libmpv's Native Module.
The component will display video. Controls are handled by the app, not this library.
Take a look at https://github.com/XBigTK13X/snowstream for a real app using the library.
Updating the AAR
Pull down the fork of libmpv-android.
Make the needed changes.
Update the version in the kotlin file.
Run buildscripts/docker-build.sh
Run buildscripts/prep-reposlite.sh VERSION
Copy the versioned aar and pom to ~/maven-repo
Update the version in gradle.build
Dev docs
https://docs.expo.dev/modules/native-view-tutorial/#add-an-event-to-notify-when-the-page-has-loaded
https://docs.expo.dev/modules/module-api/#events
https://docs.expo.dev/modules/module-api/#view
Credits
I built this wrapper. But the library that drives the interactions with mpv comes from https://github.com/jarnedemeulemeester/libmpv-android.
That repo is the baseline, I merged in a PR that handle multi instance support and tweaked some things to my liking.
