Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
ERROR: PlayMedia could not play media
#1
So I've added a bunch of list items that are supposed to call another script function. It works just fine but every time I click on an item I see this error in my log:
Code:
ERROR: PlayMedia could not play media: plugin://service.myplugin?id=51&pos=0&type=scroll

Obviously I'm not even trying to play a media file. I've searched the forum for hours now and haven't found much helpful information on this. I've tried setting the folder attribute to true, which did get rid of the error, but in turn spew out a bunch of warnings and didn't do anything on click.

I'm pretty sure this is a standard pattern, so hopefully one of you folks can help me out. A short example would be much appreciated.
Image
Reply
#2
add something like this before the script call.
Code:
xbmcplugin.setResolvedUrl(handle=int(handle),
                                  succeeded=False,
                                  listitem=xbmcgui.ListItem())
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Tried this before, but I always end up with something like "WARNING: Attempt to use invalid handle 19" and the error persists.
Image
Reply
#4
then show your complete code. Perhaps I misunderstood your use-case.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
I've sent you a PM with the full code as I don't want to share it publicly right now.
Image
Reply

Logout Mark Read Team Forum Stats Members Help
ERROR: PlayMedia could not play media0