KODI "events"
#1
Hello I'd need help, I'm writing a plugin that has to do with "now playing" and managed well so far, but I came upon an issue I don't know how to solve.

I am getting state of the player with "onPlayBackStarted" etc to capture playing song/movie and it works quite well. But I realized that this doesn't work for Radio streams, since the radio doesn't stop and restarts playback.

So my question - is there a "trigger" similar to "onPlayBackStarted" for when SONG NAME changes?

If not, I suppose the best way woud be to use timer on i.e. 3 minutes?

D>
Reply
#2
AFAIK there is no event for it and as you say a timer is probably a good solution. You coyld probably poll more often if needed. Im not a pro so there might be another way?
Reply
#3
For Artist Slideshow I defined a function called playback_stopped_or_changed that checks to see if the playing artist has changed. You could do something similar and use a loop to continually test for the song name changing. If you do that, just make sure to test for xbmc.abortRequested as well. That's the trigger that's sent when the user quits Kodi.
Reply

Logout Mark Read Team Forum Stats Members Help
KODI "events"0