<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Mpd__Playback_lwt (libmpdclient.Mpd__Playback_lwt)</title><link rel="stylesheet" href="../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../index.html">libmpdclient</a> &#x00BB; Mpd__Playback_lwt</nav><h1>Module <code>Mpd__Playback_lwt</code></h1><p>Controlling playback functions in Lwt thread. https://www.musicpd.org/doc/protocol/playback_commands.html</p></header><dl><dt class="spec value" id="val-next"><a href="#val-next" class="anchor"></a><code><span class="keyword">val </span>next : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Play next song in the playlist.</p></dd></dl><dl><dt class="spec value" id="val-previous"><a href="#val-previous" class="anchor"></a><code><span class="keyword">val </span>previous : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Play previous song in the playlist.</p></dd></dl><dl><dt class="spec value" id="val-stop"><a href="#val-stop" class="anchor"></a><code><span class="keyword">val </span>stop : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Stop playing.</p></dd></dl><dl><dt class="spec value" id="val-pause"><a href="#val-pause" class="anchor"></a><code><span class="keyword">val </span>pause : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> bool <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Toggle pause/resumers playing</p></dd></dl><dl><dt class="spec value" id="val-play"><a href="#val-play" class="anchor"></a><code><span class="keyword">val </span>play : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Begin playing the playlist at song number.</p></dd></dl><dl><dt class="spec value" id="val-playid"><a href="#val-playid" class="anchor"></a><code><span class="keyword">val </span>playid : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Begin playing the playlist at song id.</p></dd></dl><dl><dt class="spec value" id="val-seek"><a href="#val-seek" class="anchor"></a><code><span class="keyword">val </span>seek : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Seek to the position time of entry songpos in the playlist.</p></dd></dl><dl><dt class="spec value" id="val-seekid"><a href="#val-seekid" class="anchor"></a><code><span class="keyword">val </span>seekid : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Seek to the position time of song id.</p></dd></dl><dl><dt class="spec value" id="val-seekcur"><a href="#val-seekcur" class="anchor"></a><code><span class="keyword">val </span>seekcur : <a href="../Mpd/Client_lwt/index.html#type-t">Mpd.Client_lwt.t</a> <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="../Mpd/Protocol/index.html#type-response">Mpd.Protocol.response</a> Lwt.t</code></dt><dd><p>Seek to the position time within the current song. TODO : If prefixed by '+' or '-', then the time is relative to the current playing position</p></dd></dl></div></body></html>