VLC manages a VLC media player through it's RC interface.
In it's default behaviour it will launch a VLC instance wrapped in a sub process and connect to it's RC interface. But VLC instance management may be bypassed. This is most usefull when controlling a remote VLC instance or for fine grained control for the VLC media player lifecycle.
NOTE: This project is still in it's inception state
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install vlc
Default behaviour: self managed VLC instance
vlc = VLC::Client.new => #<VLC::Client:0x00000000c21be0 @host="localhost", @port=9595, @auto_start=true, @headless=true, @process=#<IO:fd 5>, @socket=#<TCPSocket:fd 6>> vlc.running? => true
VLC instance management bypass
vlc = VLC::Client.new(auto_start: false) => #<VLC::Client:0x00000001a73f90 @auto_start=false, @headless=true, @host="localhost", @port=9595> vlc.running? => false
- Fork it
- Create your topic branch (
git checkout -b my-topic-branch)
- Add/change specs for your unimplemented feature or bug fix
- Make sure specs fail by running
bundle exec rake spec. If not return to step 3
- Hack it
- Make sure specs pass (
bundle exec rake spec). If not return to step 5
- Edit the documentation so it is coherent with your feature or fix. Run
bundle exec rake yardto review
- Commit changes (
git commit -am 'Add some feature/fix') and push to the branch (
git push origin my-topic-branch)
- Submit a pull request for your branch.
Copyright (c) 2012 Miguel Guinada LICENSE for details.