Help playing content from a plugin submenu
#1
Hi  all

I am trying to find the right JSON to open BBC news live on the IplayerWWW plugin.

So far I am able to list the top level menu from the plugin using:
Code:
http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0", "method": "Files.GetDirectory", "params": {"directory":"plugin://plugin.video.iplayerwww", "media":"video"}, "id": "1"}
Results: https://pastebin.com/N6CFc7QM

But when I try to add the next menu level:
Code:
"plugin://plugin.video.iplayerwww/?url=url&mode=101&name=iPlayer%3A+Watch+Live&iconimage=C%3A%5CUsers%5CCam%5CAppData%5CRoaming%5CKodi%5Caddons%5Cplugin.video.iplayerwww%5Cmedia%5Ctv.png&description=&subtitles_url=&logged_in=False&time=1523631071.92"
I get a parse error.

Can anyone point me in the right direction/tell me where I'm going wrong? 

Thanks,

Cam
Reply
#2
So I worked out a better way of achieving this.

First I added BBC news to my favourites in the GUI. Then used this request to get the snippet of code I needed:
json:
http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Favourites.GetFavourites","params":{"properties":["window","path","thumbnail","windowparameter"]},"id":1}

Then I used the path provided by the response in my next request:
Code:
http://localhost:8080/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"plugin://plugin.video.iplayerwww/?url=bbc_news24&mode=203"}}}
(Note you only need the url and the mode)


Hope someone else finds this useful,

Cam
Reply

Logout Mark Read Team Forum Stats Members Help
Help playing content from a plugin submenu0