<br><br><div class="gmail_quote">On 29 March 2011 13:51, Mirsal Ennaime <span dir="ltr"><<a href="mailto:mirsal@mirsal.fr">mirsal@mirsal.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<div class="im"><br>
On Mon, 2011-03-28 at 23:01 +0300, Rémi Denis-Courmont wrote:<br>
> Le samedi 26 mars 2011 19:52:13 akash mehrotra, vous avez écrit :<br>
> > Added pl-forceplay, pl_forcepause, pl_resume to oldhttp interface<br>
> ><br>
> > Updated the relevant readme file<br>
> > pl_forcepause<br>
> > pause playback, do nothing if paused<br>
> ><br>
> > pl_resume<br>
> > resume playback, do nothing if playing<br>
<br>
</div>As far as I have seen, commands like these ones have proven to be very<br>
useful to remote controllers in the case of the MPRIS.<br>
<div class="im"><br>
> How about a pl_setpause that accepts a boolean value? I think there's already<br>
> something along those lines in MPRIS.<br>
<br>
</div>Actually, we have Pause() which is equivalent to pl_forcepause, Play()<br>
(roughly like pl_resume) and PlayPause() (pauses when playing, resumes<br>
when paused)<br>
<br>
see: <a href="http://www.mpris.org/2.1/spec/Player_Node.html" target="_blank">http://www.mpris.org/2.1/spec/Player_Node.html</a><br>
<br>
(sorry if this is a bit off-topic, I do not wish to hijack this thread)<br>
<br>
--<br>
<font color="#888888">mirsal<br>
</font><br>_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
<br></blockquote></div>In the VLC http interface, pl_pause is already used for toggling(like playpause),and pl_play will restart from beginning.(hence the need for using new command names)<br><br>Which method would be better to implement these commands? Using pl_setpause with a boolean argument, or 2 explicit commands for pause and resume?<br>