Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dda038c544
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (41 sloc) 0.721 kb
class ItunesWinPlayer < MusicPlayer
def playpause
@itunes.PlayPause()
end
def prev
@itunes.PreviousTrack()
end
def next
@itunes.NextTrack()
end
def voldown
@itunes.SoundVolume=@itunes.SoundVolume - 10
end
def volup
@itunes.SoundVolume=@itunes.SoundVolume + 10
end
def volume
@itunes.SoundVolume
end
def track
@itunes.CurrentTrack.name
end
def artist
@itunes.CurrentTrack.Artist
end
def album
@itunes.CurrentTrack.Album
end
def launched?
begin
require 'win32ole'
@itunes = WIN32OLE.new("iTunes.Application")
return true
rescue LoadError
return false
end
end
def name
"iTunes Windows"
end
end
Jump to Line
Something went wrong with that request. Please try again.