Open window Videos->Source (or Pictures->Source or Music->Source)
#1
Hello. How to open window Videos->Source (or Pictures->Source or Music->Source) using JSON-RPC? Thank in advance.
Reply
#2
I found API GUI.ActivateWindow but I can't understand parameters of this API.


PHP Code:
"minItems"1
      
"items": {
        
"minLength"1
        
"type""string"
      
}, 
      
"name""parameters"
      
"type""array" 
Reply
#3
Understood:
{ "jsonrpc":"2.0", "id" : "1", "method" : "GUI.ActivateWindow", "params" : { "window":"videos", "parameters": ["smb://HUNTER-PC/films"] } }
{ "jsonrpc":"2.0", "id" : "1", "method" : "GUI.ActivateWindow", "params" : { "window":"music", "parameters": ["smb://HUNTER-PC/music"] } }
{ "jsonrpc":"2.0", "id" : "1", "method" : "GUI.ActivateWindow", "params" : { "window":"pictures", "parameters": ["smb://HUNTER-PC/pictures"] } }
Reply
#4
In case you haven't seen it yet there is a list of window ids in the wiki
http://kodi.wiki/view/Opening_Windows_and_Dialogs

You can use the following generic request to show video -> sources
{ "jsonrpc":"2.0", "id" : "1", "method" : "GUI.ActivateWindow", "params" : { "window":"videos", "parameters": ["sources://video/"] } }
Reply
#5
Smile 
Millencolin007 Thank you for additional information
Reply

Logout Mark Read Team Forum Stats Members Help
Open window Videos->Source (or Pictures->Source or Music->Source)0