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 | None
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 () Source #

Play next song in the playlist.

pause :: Bool -> Command () Source #

Pauses playback on True, resumes on False.

toggle :: Command () Source #

Toggles playback.

Since: 0.10.0.0

play :: Maybe Position -> Command () Source #

Begin playback (optionally at a specific position).

playId :: Id -> Command () Source #

Begin playback at the specified song id.

previous :: Command () Source #

Play previous song.

seek :: Position -> FractionalSeconds -> Command () Source #

Seek to time in the song at the given position.

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

Seek to time in the song with the given id.

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

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 () Source #

Stop playback.