Class: Anyplayer::ItunesWindows
- Inherits:
-
Player
- Object
- Player
- Anyplayer::ItunesWindows
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
Instance Method Details
#album ⇒ Object
50
51
52
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 50
def album
itunes.CurrentTrack.Album
end
|
#artist ⇒ Object
46
47
48
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 46
def artist
itunes.CurrentTrack.Artist
end
|
#launched? ⇒ Boolean
54
55
56
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 54
def launched?
itunes
end
|
#name ⇒ Object
58
59
60
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 58
def name
"iTunes Windows"
end
|
#next ⇒ Object
25
26
27
28
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 25
def next
itunes.NextTrack()
super
end
|
#pause ⇒ Object
16
17
18
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 16
def pause
itunes.Pause()
end
|
62
63
64
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 62
def platforms
[:windows]
end
|
#play ⇒ Object
12
13
14
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 12
def play
itunes.Play()
end
|
#playpause ⇒ Object
8
9
10
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 8
def playpause
itunes.PlayPause()
end
|
#prev ⇒ Object
20
21
22
23
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 20
def prev
itunes.PreviousTrack()
super
end
|
#track ⇒ Object
42
43
44
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 42
def track
itunes.CurrentTrack.name
end
|
#voldown ⇒ Object
30
31
32
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 30
def voldown
itunes.SoundVolume = itunes.SoundVolume - 10
end
|
#volume ⇒ Object
38
39
40
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 38
def volume
itunes.SoundVolume
end
|
#volup ⇒ Object
34
35
36
|
# File 'lib/anyplayer/players/itunes_windows.rb', line 34
def volup
itunes.SoundVolume = itunes.SoundVolume + 10
end
|