Michael,
Yes, but maybe I didn't understand exactly what you meant!
I changed my code to:
Code:
--------------------
// Repeat Status Icon
SqueezeJS.UI.RptStateIcon = Ext.extend(SqueezeJS.UI.Component, {
onPlayerStateChange : function(status){
var myImage=document.getElementById('repeaticon');
if (status["playlist repeat"] == 1)
myImage.src="icons/repeat.png";
else
if (status["playlist repeat"] == 2)
myImage.src="icons/repeat_all.png";
else
myImage.src="icons/no_repeat.png";
this.el.update(myImage.src);
}});
new SqueezeJS.UI.RptStateIcon({el: 'repeaticon', noLink: true});
SqueezeJS.UI.RptStateIcon = Ext.extend(SqueezeJS.UI.Component, {
onPlaylistChange : function(status){
var myImage=document.getElementById('repeaticon');
if (status["playlist repeat"] == 1)
myImage.src="icons/repeat.png";
else
if (status["playlist repeat"] == 2)
myImage.src="icons/repeat_all.png";
else
myImage.src="icons/no_repeat.png";
this.el.update(myImage.src);
}});
new SqueezeJS.UI.RptStateIcon({el: 'repeaticon', noLink: true});
--------------------
Is this what you intended?
When a new song starts both repeat and shuffle images update, but
changing the status of 'repeat' during a song has no effect - unless
'shuffle' is changed.
------------------------------------------------------------------------
MillmoorRon's Profile: http://forums.slimdevices.com/member.php?userid=6413
View this thread: http://forums.slimdevices.com/showthread.php?t=74270
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy