How does listitem.isPlaying work?
#1
Hi,

Edit: I ment to ask abot listitem.isPlaying, the boolean. Not any fictive function, sorry.

ListItem.isPlaying() is a nice function to show the user what is playing.

All the new dynamic lists and whatnots are even nicer.
Sadly .isPlaying() does not "just work" with all those new options so a really important visual clue is lost.

So..

How does .isPlaying() determine if a listItem is playing?

I figure it compares a value from the musicPlayer with a value in the listItem?
But what value might that be?

I speculate that the "fix" that will work for me, is to include that value in the dynamic list?

Sorry if this is the wrong place to ask, I just thought that if anyone knows it would be you guys! Smile
Reply
#2
Anyone?
Reply
#3
Sorry bud i dont know but looks like a good function cant wait to hear the answer
Reply
#4
Simple: ListItem.isPlaying() doesn't exist. See: https://github.com/xbmc/xbmc/blob/master...ListItem.h
Reply
#5
(2015-12-07, 21:57)Roman_V_M Wrote: Simple: ListItem.isPlaying() doesn't exist. See: https://github.com/xbmc/xbmc/blob/master...ListItem.h

lol, I'm pretty sure he means player not listitem
http://mirrors.xbmc.org/docs/python-docs...-isPlaying
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#6
(2015-12-07, 22:01)Lunatixz Wrote:
(2015-12-07, 21:57)Roman_V_M Wrote: Simple: ListItem.isPlaying() doesn't exist. See: https://github.com/xbmc/xbmc/blob/master...ListItem.h

lol, I'm pretty sure he means player not listitem
http://mirrors.xbmc.org/docs/python-docs...-isPlaying

I've thought of that but then the question makes no sense. This method takes no arguments and returns a plain boolean value.
Reply
#7
(2015-12-07, 22:25)Roman_V_M Wrote:
(2015-12-07, 22:01)Lunatixz Wrote:
(2015-12-07, 21:57)Roman_V_M Wrote: Simple: ListItem.isPlaying() doesn't exist. See: https://github.com/xbmc/xbmc/blob/master...ListItem.h

lol, I'm pretty sure he means player not listitem
http://mirrors.xbmc.org/docs/python-docs...-isPlaying

I've thought of that but then the question makes no sense. This method takes no arguments and returns a plain boolean value.

true, I took the question as "pseudo" code, when playing a listitem how does isplaying work... but I could be wrong
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#8
It occurred to me that probably the TC is talking about InfoLabels. But surely he/she should express their thoughts more clearly.
Reply
#9
I apologize for the confusion! You are all right. Bits and pieces made this easy to misunderstand for experts.

So, How does the inskin bool listitem.isplaying determine when to fire?

I have a plugin returning a list of songs (by that I mean the listitems have labels originating from the songs table, they are not filled with all the mumbojumbo info Kodi wishes it to have) to a panel container (with no Kodi-ID, but in a mediawindow.xml (when is all that bullsh"t going away!?)) using the <content> tag, but the inskin bool listitem.isplaying is not firing (obviously. But what is needed?). Furthermore I handle the playing through the panels <onclick> tag, using a script.

I speculate(d) that Kodi compared something in the listitem I send from the plugin with something in the player, but now I am not so sure, as the http://kodi.wiki/view/List_of_boolean_conditions made me think that it can mean something other than what I believed http://kodi.wiki/view/InfoLabels teaches. What I read into it now, is that the listitem could have an I-am-playing-something trigger that needs activation.. somehow?

Bool list defines Listitem.isplaying as : "Returns whether the current ListItem.* info labels and images are currently Playing media" - Could be understood as the item is playing it's media?
infolabel list as: "Whether the item is playing" - Could also, in the light of the above - have the ambiguous meaning "Whether the item is playing something". Although I doubt it..

I posted here, in addons, as I believe the fault lies in what needs to be returned with the list from the plugin.
Reply

Logout Mark Read Team Forum Stats Members Help
How does listitem.isPlaying work?0