vlc | branch: master | Akash Mehrotra <[email protected]> | Sat Mar 26 
23:30:56 2011 +0530| [110a4f7a327eafb112368e54b9c23389394ac51b] | committer: 
Jean-Baptiste Kempf

Updated with pl_forcepause,pl_forceplay,pl_resume details

adds pl_forceplay,pl_forcepause,pl_resume

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=110a4f7a327eafb112368e54b9c23389394ac51b
---

 share/http/requests/README.txt |    9 +++++++++
 share/http/requests/status.xml |   19 +++++++++++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/share/http/requests/README.txt b/share/http/requests/README.txt
index a4cfacb..cfd5a09 100644
--- a/share/http/requests/README.txt
+++ b/share/http/requests/README.txt
@@ -23,6 +23,15 @@ status.xml:
 > add <mrl> to playlist:
   ?command=in_enqueue&input=<mrl>
 
+> pause playback, do nothing if paused:
+  ?command=pl_forcepause
+
+> resume playback, do nothing if playing:
+  ?command=pl_resume
+
+> Start playback if in stopped or paused mode, if paused will resume, not 
restart playback:
+  ?command=pl_forceplay
+
 > play playlist item <id>:
   ?command=pl_play&id=<id>
 
diff --git a/share/http/requests/status.xml b/share/http/requests/status.xml
index bbc5ea5..da6d3ca 100644
--- a/share/http/requests/status.xml
+++ b/share/http/requests/status.xml
@@ -38,6 +38,25 @@
   <vlc id="end" />
 
   <!-- playlist commands -->
+  <vlc id="if" param1="command value 'pl_forceplay' strcmp 0 =" />
+    <vlc id="if" param1="stream_state value 'stop' strcmp 0 =" />
+      <vlc id="rpn" param1="id value vlc_play"/>
+    <vlc id="else" />
+      <vlc id="if" param1="stream_state value 'paused' strcmp 0 =" />
+        <vlc id="rpn" param1="vlc_pause"/>
+      <vlc id="end" />
+    <vlc id="end" />
+  <vlc id="end" />
+  <vlc id="if" param1="command value 'pl_forcepause' strcmp 0 =" />
+    <vlc id="if" param1="stream_state value 'playing' strcmp 0 =" />
+      <vlc id="rpn" param1="vlc_pause"/>
+    <vlc id="end" />
+  <vlc id="end" />
+  <vlc id="if" param1="command value 'pl_resume' strcmp 0 =" />
+    <vlc id="if" param1="stream_state value 'paused' strcmp 0 =" />
+      <vlc id="rpn" param1="vlc_pause"/>
+    <vlc id="end" />
+  <vlc id="end" />
   <vlc id="if" param1="command value 'pl_play' strcmp 0 =" />
     <vlc id="rpn" param1="id value vlc_play" />
   <vlc id="end" />

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to