Module: Quiyo::Playback
- Included in:
- Quiyo
- Defined in:
- lib/quiyo/playback.rb
Instance Method Summary collapse
Instance Method Details
#pause ⇒ Object
7 8 9 10 |
# File 'lib/quiyo/playback.rb', line 7 def pause @mpd.paused? ? @mpd.pause=(false) : @mpd.pause=(true) end |
#play(arg = nil) ⇒ Object
3 |
# File 'lib/quiyo/playback.rb', line 3 def play(arg = nil); @mpd.play(arg); ; end |
#playnext ⇒ Object
4 |
# File 'lib/quiyo/playback.rb', line 4 def playnext; @mpd.next; ; end |
#playprevious ⇒ Object
5 |
# File 'lib/quiyo/playback.rb', line 5 def playprevious; @mpd.previous; ; end |
#stop ⇒ Object
6 |
# File 'lib/quiyo/playback.rb', line 6 def stop; @mpd.stop; ; end |