That is true, but some players emit on more then just track change, Banshee for example also emits PropertiesChanged->Metadata when someone edits the track info, as it should. So if your just monitoring for when the track changes, you would have to store the trackid and compare. Although that isn't the end of the world, i thought TrackChanged Signal would be useful.<br>
<br><div class="gmail_quote">On Wed, Aug 15, 2012 at 5:14 AM, Mirsal Ennaime <span dir="ltr"><<a href="mailto:mirsal@videolan.org" target="_blank">mirsal@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Kevin,<br>
<br>
On Tue, 2012-08-14 at 17:23 -0400, Kevin Anthony wrote:<br>
> I think it's useful for the player to emit a signal when the track is<br>
> changed. An example of this being useful is your querying the player's<br>
> metadata and displaying it on a LCD screen. This prevents you from having<br>
> to query the metadata contently, you simply listen for the signal and when<br>
> you hear it, re-query the metadata.<br>
<br>
It is useful indeed, and it's already there[1] !<br>
<br>
Players must emit the org.freedesktop.DBus.Properties.PropertiesChanged signal<br>
when the Metadata property changes, so track changes can be detected using<br>
the mpris:trackid attribute.<br>
<br>
Whether the current way is too convoluted or not clear enough can still<br>
be discussed though :)<br>
<br>
<br>
[1] <a href="http://specifications.freedesktop.org/mpris-spec/2.2/Player_Node.html#Property:Metadata" target="_blank">http://specifications.freedesktop.org/mpris-spec/2.2/Player_Node.html#Property:Metadata</a><br>
<br>
<br>
Best,<br>
<span class="HOEnZb"><font color="#888888">--<br>
mirsal<br>
</font></span><br>_______________________________________________<br>
MPRIS mailing list<br>
<a href="mailto:MPRIS@lists.freedesktop.org">MPRIS@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mpris" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mpris</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks<br>Kevin Anthony<br><a href="http://www.NoSideRacing.com" target="_blank">www.NoSideRacing.com</a><div><br><div>Do you use Banshee?</div></div><div>
Download the Community Extensions:</div><div><a href="http://banshee.fm/download/extensions/" target="_blank">http://banshee.fm/download/extensions/</a></div><br>