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});
// Shuffle Status Icon
SqueezeJS.UI.ShflStateIcon = Ext.extend(SqueezeJS.UI.Component, {
onPlayerStateChange : function(status){
var myImage=document.getElementById('shuffleicon');
var shufflestate;
if (status["playlist shuffle"] == 1)
myImage.src="icons/shuffle1.png";
else
if (status["playlist shuffle"] == 2)
myImage.src="icons/shuffle2.png";
else
myImage.src="icons/no_shuffle.png";
this.el.update(myImage.src);
}});
new SqueezeJS.UI.ShflStateIcon({el: 'shuffleicon', noLink: true});
--------------------
I have set a breakpoint on the 2 lines above which state:
Code:
--------------------
onPlayerStateChange : function(status){
--------------------
But nothing happens for either even though the icons change when
'shuffle' is picked.
Is this correct?
------------------------------------------------------------------------
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