itunes-client
itunes-client
provides a high level API (like ActiveRecord style) to control your iTunes.
Installation
Add this line to your application's Gemfile:
gem 'itunes-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install itunes-client
Supported OS
- OSX Yosemite
- OSX Mavericks
Supported Ruby
Usage
require 'itunes-client'
include Itunes
track = Itunes::Player.add(path_to_your_sound_file)
encoded_track = track.convert
tracks = Track.find_by(name: "Hello, Goodbye")
track = tracks.first
track.play
track.stop
volume = Itunes::Volume
volume.down(20)
volume.down
volume.up(20)
volume.up
volume.mute
volume.unmute
volume.value
License
itunes-client
is released under the MIT License.
Contributing
- Fork it
- 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 new Pull Request