[MPRIS] TrackChanged Signal

Mirsal Ennaime mirsal at videolan.org
Wed Aug 15 02:14:56 PDT 2012


Hi Kevin,

On Tue, 2012-08-14 at 17:23 -0400, Kevin Anthony wrote:
> I think it's useful for the player to emit a signal when the track is
> changed. An example of this being useful is your querying the player's
> metadata and displaying it on a LCD screen.  This prevents you from having
> to query the metadata contently, you simply listen for the signal and when
> you hear it, re-query the metadata.

It is useful indeed, and it's already there[1] !

Players must emit the org.freedesktop.DBus.Properties.PropertiesChanged signal
when the Metadata property changes, so track changes can be detected using
the mpris:trackid attribute.

Whether the current way is too convoluted or not clear enough can still
be discussed though :)


[1] http://specifications.freedesktop.org/mpris-spec/2.2/Player_Node.html#Property:Metadata


Best,
-- 
mirsal 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mpris/attachments/20120815/d64a673d/attachment.pgp>


More information about the MPRIS mailing list