jsonrpc call Addons.ExecuteAddon
#1
I'm working on a plugin - which thanks to the docs and helpful posts on here as been straightforward so far,,,

Now I need to be able to pass some info in from a remote system via http jsonrpc, I am calling the following, however this takes me to "Videos" - I just want to call the method silently and then handle what happens there.

Code:
{ "jsonrpc": "2.0", "method": "Addons.ExecuteAddon", "params": { "addonid": "plugin.video.bitin", "params":{"action":"alert"}}, "id": "1"}

Any ideas how I might do this do I have something wrong in my rpc or is there another way to do this?

Thanks for any pointers!
Reply
#2
a plugin is an entry in the virtual filesystem. you simply list a directory plugin://<id>?<params_as_http_style_parameters>
Reply
#3
(2015-12-10, 09:55)ironic_monkey Wrote: a plugin is an entry in the virtual filesystem. you simply list a directory plugin://<id>?<params_as_http_style_parameters>

Thanks for the reply - I'm not quite sure I understand or more likely didn't explain myself...

jsonrpc calls are working - I can call actions in my addon, however I have an action (alert) that should run in the background (no changes to the screen), while I can trigger this action the screen jumps to videos. I see:

Movies
Recently added movies
Files
Playlists
...

What I would like to happen is to just run the action in the background and make no changes to the gui (it shouldn't interrupt any existing playback)
Reply
#4
Yes. But that is because you use executeadddon. Send the url through GetDirectory like described. Your plugin should then do its thing and call endOfDirectory() as normal (ie return an empty listing).
again, the plugins are virtual filesystem entries. executing the addon with parameters is done through listing a directory with the url described above. GetDirectory() is background, ExecuteAddon is foreground (i.e. it will enable the relevant media window and show the listing in the GUI).
Reply
#5
ah - I got it - thanks a million for this
Reply

Logout Mark Read Team Forum Stats Members Help
jsonrpc call Addons.ExecuteAddon0