The ruby-mpris gem allows you to control media players that follow the MPRIS specification.
ruby-dbus performs all the hard work behind the scenes. You can download it from: http://trac.luon.net/ruby-dbus/
You may get the latest stable version from Rubyforge. Source gems are also available.
$ gem install ruby-mpris
Loading ruby-mpris gem
You have installed the gem already, yeah?
require 'rubygems' require 'mpris'
- MPRIS homepage: http://mpris.org/
- Github project: http://github.com/njh/ruby-mpris
- Documentation: http://rdoc.info/github/njh/ruby-mpris/master/frames
The mpris ruby gem is licensed under the terms of the MIT license. See the file LICENSE for details.