Network.MPD.Applicative.PlaybackControl

libmpd-0.10.0.1: An MPD client library.

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

Network.MPD.Applicative.PlaybackControl

Description

Controlling playback.

Synopsis

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

# Documentation

next :: Command () #

Play next song in the playlist.

pause :: Bool -> Command () #

Pauses playback on True, resumes on False.

toggle :: Command () #

Toggles playback.

Since: 0.10.0.0

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 -> FractionalSeconds -> Command () #

Seek to time in the song at the given position.

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

Seek to time in the song with the given id.

seekCur :: Bool -> FractionalSeconds -> Command () #

Seek to time in the current song. Absolute time for True in the frist argument, relative time for False.

Since: 0.9.2.0

stop :: Command () #

Stop playback.