[mpris] Play / Pause method

Mirsal Ennaime mirsal.ennaime at gmail.com
Fri Dec 26 19:47:37 CET 2008


On Thu, Dec 18, 2008 at 4:16 PM, Gioacchino <gmazzurco89 at gmail.com> wrote:
> Hello all  I am Gioacchino

Hello

> I am writing some code for kdelirc. I have a iussue with mpris player because
> now a lot of IR use only a button for play/pause, can you add a method that
> set play if paused and set pause if plaing ? something like

Sorry for the delay,

IMO this should be handled by the client MPRIS implementation, using
the org.freedesktop.MediaPlayer.GetStatus method.

When the Play/Pause button is hit, test if the status is on "stopped",
then call org.freedesktop.MediaPlayer.Play else call
org.freedesktop.MediaPlayer.Pause

Regards
-- 
Mirsal Ennaime


More information about the mpris mailing list