aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRomain Bignon <romain@peerfuse.org>2009-03-27 14:42:55 +0100
committerRomain Bignon <romain@peerfuse.org>2009-03-27 14:58:31 +0100
commite46722b2ebe05fce63bc7b86100c159b5cadd297 (patch)
treec61515a84ad0f425233a7ebe7ee3731ab63df92a /doc
parent929c200c380996d6dfcbdd468a74aaef48298af6 (diff)
downloadmpd-e46722b2ebe05fce63bc7b86100c159b5cadd297.tar.gz
mpd-e46722b2ebe05fce63bc7b86100c159b5cadd297.tar.xz
mpd-e46722b2ebe05fce63bc7b86100c159b5cadd297.zip
implements the smartstop feature
The smartstop feature is a way to tell mpd to stop playing after current song. This patche provides: - 'state' command returns 'smartstop' state (1 or 0) - 'smartstop' can activate or not the smartstop state - when song is terminated, mpd stops playing and smartstop is set to 0
Diffstat (limited to 'doc')
-rw-r--r--doc/protocol.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/protocol.xml b/doc/protocol.xml
index 8f5b4b9e8..fc833f7bf 100644
--- a/doc/protocol.xml
+++ b/doc/protocol.xml
@@ -217,6 +217,12 @@
</para>
</listitem>
<listitem>
+ <para>
+ <varname>smartstop</varname>:
+ <returnvalue>0 or 1</returnvalue>
+ </para>
+ </listitem>
+ <listitem>
<para>
<varname>playlist</varname>:
<returnvalue>31-bit unsigned integer, the playlist
@@ -402,6 +408,21 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry id="command_smartstop">
+ <term>
+ <cmdsynopsis>
+ <command>smartstop</command>
+ <arg choice="req"><replaceable>STATE</replaceable></arg>
+ </cmdsynopsis>
+ </term>
+ <listitem>
+ <para>
+ Sets smartstop state to <varname>STATE</varname>,
+ <varname>STATE</varname> should be 0 or 1.
+ When smartstop is activated, playback is stopped after current song.
+ </para>
+ </listitem>
+ </varlistentry>
<varlistentry id="command_volume">
<term>
<cmdsynopsis>