Posts: 7
Joined: Apr 2018
Reputation:
0
The "onPlayBackStarted" event on leia seems to be called once after reboot, after that it's not called anymore.
Is this a Leia bug or an addon bug? Would be nice to get an update.
The "onPlayBackResumed" event works fine, so I need to pause and resume every video, as this calls the same smarthome functions here.
Best regards,
Marc
Posts: 15
Joined: Oct 2013
Reputation:
0
giss73
Junior Member
Posts: 15
The fact is that kodi Callbacks is no longer working on Leia and it seems that KenV99 has abandoned the project. So we have to hope that someone takes the KenV99 project.
Posts: 26
Joined: Sep 2016
Reputation:
0
i3laze
Junior Member
Posts: 26
2019-03-13, 17:24
(This post was last modified: 2019-03-16, 08:41 by i3laze.)
Leia. What’s this crash is about?
2019-03-13 18:22:46.963 T:3186619248 NOTICE: $$$ [kodi.callbacks] - Settings read
2019-03-13 18:22:46.965 T:3186619248 NOTICE: $$$ [kodi.callbacks] - Dispatcher initialized
2019-03-13 18:22:46.970 T:3186619248 NOTICE: $$$ [kodi.callbacks] - Subscriber for event: onPlayBackStarted, task: T1 created
2019-03-13 18:22:46.977 T:3186619248 NOTICE: $$$ [kodi.callbacks] - Player Publisher initialized
2019-03-13 18:22:46.981 T:3186619248 NOTICE: $$$ [kodi.callbacks] - Dispatcher started
2019-03-13 18:22:46.984 T:3186619248 NOTICE: $$$ [kodi.callbacks] - Publisher(s) started
2019-03-13 18:22:57.971 T:4094574512 NOTICE: VideoPlayer::OpenFile: videodb://inprogresstvshows/94/-2/1995?season=-2&tvshowid=94
2019-03-13 18:22:57.972 T:3151532912 NOTICE: Creating InputStream
2019-03-13 18:22:57.975 T:3151532912 NOTICE: Creating Demuxer
2019-03-13 18:22:57.994 T:3171939184 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/storage/.kodi/addons/script.service.kodi.callbacks/resources/lib/publishers/player.py", line 331, in onPlayBackStarted
self.getInfo()
File "/storage/.kodi/addons/script.service.kodi.callbacks/resources/lib/publishers/player.py", line 267, in getInfo
playerid = player['result'][0]['playerid']
IndexError: list index out of range
-->End of Python script error report<--
Posts: 2
Joined: Oct 2018
Reputation:
0
So, I changed xbmc.sleep to (1000). Now it will reliably update the status when watching anything on the PVR (Myth), it will sometimes update the status when starting a TV show, but it will never update the status when starting a movie. I'm stumped.
Posts: 175
Joined: Jul 2018
Reputation:
2
Hello,
I'm trying too to use the "onPlayBackStarted" event but it doesn't work well...
But I identified a systematic behavior : it works ONLY when you run a video that interrupts another one playing.
if you start a video with no video playing in background, it doesn't work.
If this can help someone to debug the plugin, it would be very helpful !!
Thanks
Posts: 175
Joined: Jul 2018
Reputation:
2
I have a little question by the way, I'm not sure to understand well how this addon works.
When I choose "onPlayBackStarted", I can only transmit the variables that are listed below ?
(%li, %wi, %fn, %ti,...)
Or I can transmit another variable ?
I need to transmit the information of number of channels of the media playing (2.0 or 5.1 for example)
Is it possible with this add-on ?
Posts: 28
Joined: Dec 2010
Reputation:
10
uhmmm, I guess I can't edit posts, here is my command to try and play songs in a directory..
PlayMedia(C:/Media/Music/LondonSymphonyOrchestra/JohnWilliamsALifeInMusic,[isdir])