class Anyplayer::ItunesWindows
Constants
- SoundVolume
Public Instance Methods
album()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 50 def album itunes.CurrentTrack.Album end
artist()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 46 def artist itunes.CurrentTrack.Artist end
launched?()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 54 def launched? itunes end
name()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 58 def name "iTunes Windows" end
next()
click to toggle source
Calls superclass method
Anyplayer::Player#next
# File lib/anyplayer/players/itunes_windows.rb, line 25 def next itunes.NextTrack() super end
pause()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 16 def pause itunes.Pause() end
platforms()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 62 def platforms [:windows] end
play()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 12 def play itunes.Play() end
playpause()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 8 def playpause itunes.PlayPause() end
prev()
click to toggle source
Calls superclass method
Anyplayer::Player#prev
# File lib/anyplayer/players/itunes_windows.rb, line 20 def prev itunes.PreviousTrack() super end
track()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 42 def track itunes.CurrentTrack.name end
voldown()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 30 def voldown itunes.SoundVolume = itunes.SoundVolume - 10 end
volume()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 38 def volume itunes.SoundVolume end
volup()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 34 def volup itunes.SoundVolume = itunes.SoundVolume + 10 end
Private Instance Methods
itunes()
click to toggle source
# File lib/anyplayer/players/itunes_windows.rb, line 68 def itunes itunes ||= WIN32OLE.new("iTunes.Application") end