Class Amarok
In: amarok.rb
Parent: Object

Class for control Amarok player via dcop protocol using dcop command line client.

Methods

clear   mute   next   play   play_pause   player   playlist   prev   show_osd   stop   volume_down   volume_up  

Public Instance methods

Clear the playlist.

[Source]

# File amarok.rb, line 71
        def clear
                playlist("clearPlaylist")
        end

Mute the volume.

[Source]

# File amarok.rb, line 92
        def mute
                player("mute")
        end

Skip to next track.

[Source]

# File amarok.rb, line 99
        def next
                player("next")
        end

Start playing.

[Source]

# File amarok.rb, line 78
        def play
                player("play")
        end

(Un)pause the player.

[Source]

# File amarok.rb, line 113
        def play_pause
                player("playPause")
        end

Skip to previous track.

[Source]

# File amarok.rb, line 106
        def prev
                player("prev")
        end

Show OSD.

[Source]

# File amarok.rb, line 134
        def show_osd
                player("showOSD")
        end

Stop playing.

[Source]

# File amarok.rb, line 85
        def stop
                player("stop")
        end

Decrease the volume.

[Source]

# File amarok.rb, line 127
        def volume_down
                player("volumeDown")
        end

Increase the volume.

[Source]

# File amarok.rb, line 120
        def volume_up
                player("volumeUp")
        end

Private Instance methods

Method to execute command for amarok player.

[Source]

# File amarok.rb, line 54
        def player(command)
                `dcop amarok player #{command}`
        end

Method to execute command for amarok playlist.

[Source]

# File amarok.rb, line 61
        def playlist(command)
                `dcop amarok playlist #{command}`
        end

[Validate]