Kodi Community Forum
$INFO[MusicPlayer.Cover] is not working for button? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: $INFO[MusicPlayer.Cover] is not working for button? (/showthread.php?tid=128654)



$INFO[MusicPlayer.Cover] is not working for button? - slinuxgeek - 2012-04-12

This button does not display any album art , but it should display when a song is playing, I think.

What wrong I am doing here?

<control type="button">
<posx>10</posx>
<posy>0</posy>
<width>110</width>
<height>85</height>
<texturenofocus>$INFO[MusicPlayer.Cover]</texturenofocus>
<texturefocus>$INFO[MusicPlayer.Cover]</texturefocus>
<visible>true</visible>
</control>
Please Help.
Thanks.



RE: $INFO[MusicPlayer.Cover] is not working for button? - Hitcher - 2012-04-12

Just change it to an image control.


RE: $INFO[MusicPlayer.Cover] is not working for button? - slinuxgeek - 2012-04-13

But then I will not be able to write <onclick> </onclick> for that.
I have to do something when the image is clicked.

Please Help...



RE: $INFO[MusicPlayer.Cover] is not working for button? - jmarshall - 2012-04-13

Put a button control in the same place, the same size without a texture.


RE: $INFO[MusicPlayer.Cover] is not working for button? - slinuxgeek - 2012-04-13

Thanks, that is working , now in <onclick> Huh </onclick> what should I write so that, clicking on the button will open the album of currently playing song? ( which will display all songs of the album on screen)

Help Please...
Thanks for Help.