Kodi Community Forum

Full Version: Open window Videos->Source (or Pictures->Source or Music->Source)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. How to open window Videos->Source (or Pictures->Source or Music->Source) using JSON-RPC? Thank in advance.
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" 
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"] } }
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/"] } }
Millencolin007 Thank you for additional information