Class for control Amarok player via dcop protocol using dcop command line client.
Clear the playlist.
[Source]
# File amarok.rb, line 71 def clear playlist("clearPlaylist") end
Mute the volume.
# File amarok.rb, line 92 def mute player("mute") end
Skip to next track.
# File amarok.rb, line 99 def next player("next") end
Start playing.
# File amarok.rb, line 78 def play player("play") end
(Un)pause the player.
# File amarok.rb, line 113 def play_pause player("playPause") end
Skip to previous track.
# File amarok.rb, line 106 def prev player("prev") end
Show OSD.
# File amarok.rb, line 134 def show_osd player("showOSD") end
Stop playing.
# File amarok.rb, line 85 def stop player("stop") end
Decrease the volume.
# File amarok.rb, line 127 def volume_down player("volumeDown") end
Increase the volume.
# File amarok.rb, line 120 def volume_up player("volumeUp") end
Method to execute command for amarok player.
# File amarok.rb, line 54 def player(command) `dcop amarok player #{command}` end
Method to execute command for amarok playlist.
# File amarok.rb, line 61 def playlist(command) `dcop amarok playlist #{command}` end
[Validate]