mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
26 lines
367 B
Ruby
26 lines
367 B
Ruby
require './models/mpd_connection'
|
|
|
|
class Control
|
|
class << self
|
|
def play
|
|
MPDConnection.mpd.play
|
|
end
|
|
|
|
def stop
|
|
MPDConnection.mpd.stop
|
|
end
|
|
|
|
def next
|
|
MPDConnection.mpd.next
|
|
end
|
|
|
|
def previous
|
|
MPDConnection.mpd.previous
|
|
end
|
|
|
|
def pause
|
|
MPDConnection.mpd.pause(!MPDConnection.mpd.paused?)
|
|
end
|
|
end
|
|
end
|