Posts: 445
Joined: Sep 2015
Reputation:
1
Hi, me again..
How would I begin playing an album from the song clicked in a dynamic list?
I thought a simple <onclick>play</onclick> was supposed to do that?
It plays something all right, but it is unrelated to the list.
The item played is definitly related to the position in the dynamic list, indicating it is infact linked to some value.
Skipping to the next song in the (wrong but playing) album is also working, so more than one song is being passed to the player.
Again, sorry for spamming this forum..
Posts: 445
Joined: Sep 2015
Reputation:
1
2015-10-21, 13:01
(This post was last modified: 2015-10-22, 00:10 by Torben.)
Thanks senna99,
I see in the docs* that the "1" (isdir) indicates to play the contents of the folder, but I want to play the contents of the songs listed in the panel-container.
For playing an album it should actually work for me as I have it pretty organized, but sometimes I want to shuffle between all items from an artist/genre or similar.
Then PLayMedia will fail.
So the question still stands:
Are there any ways of playing the songs actually present in a list?
*Edit:I rushed. The docs actually says "1" is for playing in a video-container that isn't fullscreen and "isdir" is to play a folder.
Posts: 677
Joined: Sep 2011
Reputation:
14
Can you show your dynamic list here, because I'm not sure now do you use list for album or songs.
If I understand you have dynamic list for albums and when you open the album you can not play song,
or I missed the topic, because I'm not an expert but I'm trying to help you.
Posts: 445
Joined: Sep 2015
Reputation:
1
2015-10-22, 13:44
(This post was last modified: 2015-10-22, 13:44 by Torben.)
I noticed that <onclick>play</onclick> is definitly not doing anything. Having NO onclick defined plays a single song. but still it does NOT enqueue the rest of the list - as it used to. So the question still stands.
Furthermore I noticed that the <visible>ListItem.IsPlaying</visible> is not working now!
Posts: 445
Joined: Sep 2015
Reputation:
1
2015-11-12, 19:19
(This post was last modified: 2015-11-12, 19:21 by Torben.)
An event hook to the player begin/end was easy!
And I can get at the songs dbid from Kodi. So close.. :-)
I have travelled beyond the borders of skinning and into Mordor though.