mpv-crystal-simple-plugin
Version, currently master branch1 version
- master branchlatestJun 1, 2017
github.com/bew/mpv-crystal-simple-plugin
The is a simple plugin in crystal for MPV music player (mpv.io)
Installation
# Add this to your shard.yml
dependencies:
mpv-crystal-simple-plugin:
github: bew/mpv-crystal-simple-plugin
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- Author
- bew
Dependencies
This version declares no dependencies.
README
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
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 1, 2017
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/bew/mpv-crystal-simple-plugin
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1