Kodi Community Forum
xbmc.Monitor onNotification callback for JSONRPC.NotifyAll? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: xbmc.Monitor onNotification callback for JSONRPC.NotifyAll? (/showthread.php?tid=377777)



xbmc.Monitor onNotification callback for JSONRPC.NotifyAll? - scott967 - 2024-06-02

Is the xbmc.Monitor onNotification callback supposed to be called when a different script sends a JSONRPC.NotifyAll?  I'm trying to capture that from plugin.video.youtube but I don't seem to get it.  When I turn on json-rpc logging I see
Code:
JSONRPC: Incoming request: {"method": "JSONRPC.NotifyAll", "params": {"sender": "plugin.video.youtube", "message": "PlaybackStarted", "data": {"video_id": "ncFSKnYs5Px", "channel_id": "UCIpafUHTlO8Lp1ItnKbpYmx", "status": {"unlisted": false, "private": false, "crawlable": true, "family_safe": false, "live": false}}}, "jsonrpc": "2.0"}
so I assume Kodi is getting it from youtube addon.

scott s.
.


RE: xbmc.Monitor onNotification callback for JSONRPC.NotifyAll? - MoojMidge - 2024-06-08

The callback would normally have something to respond to, except the request was sent without an id, and so was being handled as a notification without any response being generated.

It was a bug that was fixed in https://github.com/anxdpanic/plugin.video.youtube/commit/a42f9caf71c2987caf4f3af772ceb5446b8f848a