Class: Anyplayer::ItunesWindows

Inherits:
Player
  • Object
show all
Defined in:
lib/anyplayer/players/itunes_windows.rb

Constant Summary

Constants inherited from Player

Player::DEFAULT_VOTES_TO_SKIP

Instance Method Summary collapse

Methods inherited from Player

#initialize, #paused?, #vote, #votes

Constructor Details

This class inherits a constructor from Anyplayer::Player

Instance Method Details

#albumObject



50
51
52
# File 'lib/anyplayer/players/itunes_windows.rb', line 50

def album
  itunes.CurrentTrack.Album
end

#artistObject



46
47
48
# File 'lib/anyplayer/players/itunes_windows.rb', line 46

def artist
  itunes.CurrentTrack.Artist
end

#launched?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/anyplayer/players/itunes_windows.rb', line 54

def launched?
  itunes
end

#nameObject



58
59
60
# File 'lib/anyplayer/players/itunes_windows.rb', line 58

def name
  "iTunes Windows"
end

#nextObject



25
26
27
28
# File 'lib/anyplayer/players/itunes_windows.rb', line 25

def next
  itunes.NextTrack()
  super
end

#pauseObject



16
17
18
# File 'lib/anyplayer/players/itunes_windows.rb', line 16

def pause
  itunes.Pause()
end

#platformsObject



62
63
64
# File 'lib/anyplayer/players/itunes_windows.rb', line 62

def platforms
  [:windows]
end

#playObject



12
13
14
# File 'lib/anyplayer/players/itunes_windows.rb', line 12

def play
  itunes.Play()
end

#playpauseObject



8
9
10
# File 'lib/anyplayer/players/itunes_windows.rb', line 8

def playpause
  itunes.PlayPause()
end

#prevObject



20
21
22
23
# File 'lib/anyplayer/players/itunes_windows.rb', line 20

def prev
  itunes.PreviousTrack()
  super
end

#trackObject



42
43
44
# File 'lib/anyplayer/players/itunes_windows.rb', line 42

def track
  itunes.CurrentTrack.name
end

#voldownObject



30
31
32
# File 'lib/anyplayer/players/itunes_windows.rb', line 30

def voldown
  itunes.SoundVolume = itunes.SoundVolume - 10
end

#volumeObject



38
39
40
# File 'lib/anyplayer/players/itunes_windows.rb', line 38

def volume
  itunes.SoundVolume
end

#volupObject



34
35
36
# File 'lib/anyplayer/players/itunes_windows.rb', line 34

def volup
  itunes.SoundVolume = itunes.SoundVolume + 10
end