[vlc-devel] [PATCH] Added new commands in share/http/status.xml and modified pl_play
akash mehrotra
mehrotra.akash at gmail.com
Sun Mar 20 08:28:27 CET 2011
Added new commands pl_forcepause , pl_resume , pl_newplay and modified
pl_play
pl_forcepause and pl_resume will only pause and resume, instead of toggling
the state like pl_pause
pl_newplay will resume playback if paused, and do nothing if the video is
currently playing. It will start playback only if video is stopped
pl_play has been modified so that it no longer restarts playback if called
when the video is paused. It will still restart playback if the video is
currently playing
Name: Akash Mehrotra
irc nick : akashm1990
Output of git diff status.xml is attached
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110320/7a2dda7a/attachment.html>
-------------- next part --------------
diff --git a/share/http/requests/status.xml b/share/http/requests/status.xml
index bbc5ea5..ae0448d 100644
--- a/share/http/requests/status.xml
+++ b/share/http/requests/status.xml
@@ -38,8 +38,31 @@
<vlc id="end" />
<!-- playlist commands -->
+ <vlc id="if" param1="command value 'pl_newplay' 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="if" param1="stream_state value 'paused' strcmp 0 =" />
+ <vlc id="rpn" param1="vlc_pause"/>
+ <vlc id="else" />
+ <vlc id="rpn" param1="id value vlc_play" />
+ <vlc id="end" />
<vlc id="end" />
<vlc id="if" param1="command value 'pl_pause' strcmp 0 =" />
<vlc id="if" param1="stream_state value 'stop' strcmp 0 = id value 0 = ! &" />
More information about the vlc-devel
mailing list