Network.MPD.Applicative.PlaybackControl

libmpd-0.9.0.9: An MPD client library.

Copyright | (c) Joachim Fasting 2012
License | MIT
Maintainer | joachifm@fastmail.fm
Stability | stable
Portability | unportable
Safe Haskell | None
Language | Haskell2010

Network.MPD.Applicative.PlaybackControl

Description

Controlling playback.

Synopsis

- next :: Command ()
- pause :: Bool -> Command ()
- play :: Maybe Position -> Command ()
- playId :: Id -> Command ()
- previous :: Command ()
- seek :: Position -> Seconds -> Command ()
- seekId :: Id -> Seconds -> Command ()
- stop :: Command ()

# Documentation

next :: Command () #

Play next song in the playlist.

pause :: Bool -> Command () #

Toggle pause.

play :: Maybe Position -> Command () #

Begin playback (optionally at a specific position).

playId :: Id -> Command () #

Begin playback at the specified song id.

previous :: Command () #

Play previous song.

seek :: Position -> Seconds -> Command () #

Seek to time in the song at the given position.

seekId :: Id -> Seconds -> Command () #

Seek to time in the song with the given id.

stop :: Command () #

Stop playback.