github.com/bew/mpv-crystal-simple-plugin
master / published Jun 1, 2017 / repository
The is a simple plugin in crystal for MPV music player (mpv.io)
Writing a simple MPV plugin in Crystal
This is a POC! It is a mpv plugin, written in crystal, using the C plugin interface of mpv.
Installation
MPV's C plugins interface is disabled by default, you'll need to build mpv with --enable-cplugin to activate it.
Build mpv
Follow the instructions at mpv-player/mpv to build mpv. When asked to configure the project, run:
$ ./waj configure --enable-cplugin
Continue the other steps to compile mpv.
Build the plugin
Build the plugin's shared library with:
$ make
If you want to rebuild it, use:
$ make re
To clean the repository, and re-build the plugin.
Usage
Once you have your custom mpv build and the plugin's shared library, you can run test it with:
$ /path/to/custom/mpv /path/to/media/file --script ./mpv-crystal-simple-plugin.so
Contributing
- Fork it ( https://github.com/bew/mpv-crystal-simple-plugin/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- bew Benoit de Chezelles - creator, maintainer