Hello
I am looking for some way to play album icon from dynamic list.
Here is my code to display music album on home
home.xml
In my custom skin, it displays album icon correctly well at home, but when I click album icon, it go to album song list (I believe it is very normal operation in almost Kodi skin as far as I know)
what I want is
I want to play all album songs with one click from dynamic list?
When I searching this, I found there is script
https://kodi.tv/addon/libraries/play-album-script
also it says
at album level, use: RunScript(script.playalbum,albumid=$INFO[ListItem.DBID])
I don't know where I put this code on my skin? I think it will be something like this,
if yes(then it will be hidden button), where do I put this on my code? Please help me out?
I am looking for some way to play album icon from dynamic list.
Here is my code to display music album on home
home.xml
<include content="HomeRecentlyAddedInfo"></include>
IncludesHomeRecentlyAdded.xml
<include name="HomeRecentlyAddedInfo">
<control type="panel" id="2300">
...(size,position)..
<itemlayout height="150" width="150">
<control type="image">
...(size,position)..
<texture fallback="special://skin/media/home/cdartdefault.png">$INFO[ListItem.Thumb]</texture>
</control>
</itemlayout>
<focusedlayout height="150" width="150">
<control type="image">
...(size,position)..
<texture fallback="special://skin/media/home/cdartdefault.png">$INFO[ListItem.Thumb]</texture>
</control>
</focusedlayout>
<content target="music">musicdb://albums/$INFO[Skin.String(AlbumDBID)]/</content>
or
<content target="music">special://skin/playlists/Random Album.xsp</content>
In my custom skin, it displays album icon correctly well at home, but when I click album icon, it go to album song list (I believe it is very normal operation in almost Kodi skin as far as I know)
what I want is
I want to play all album songs with one click from dynamic list?
When I searching this, I found there is script
https://kodi.tv/addon/libraries/play-album-script
also it says
at album level, use: RunScript(script.playalbum,albumid=$INFO[ListItem.DBID])
I don't know where I put this code on my skin? I think it will be something like this,
<control type="button" id="1234">
<onclick>RunScript(script.playalbum,albumid=$INFO[ListItem.DBID])</onclick>
</control>
if yes(then it will be hidden button), where do I put this on my code? Please help me out?