2015-01-25, 20:46
(2015-01-25, 16:39)syncd Wrote: Hi,
I was trying to use GUI.SetFullscreen to toggle the fullscreen state, but wasn't able to. The call i'm using is:
Code:{"jsonrpc":"2.0","method":"GUI.SetFullscreen","id":17,"params":{"fullscreen":"toggle"}}
but nothing changes, and the response is always:
Code:{"id":17,"jsonrpc":"2.0","result":false}
(also tried it with true/false in the params, same response)
Enabled logging and checked the logs but nothing appears on kodi.log, apart from an acknowledgement of the call. Tried this on Frodo/Linux, Gotham/Windows and Kodi/Linux and none of them changed to fullscreen or back (it's not an issue with the GPU/drivers, as i'm able to change the state from the GUI).
For now, i'm using Input.ExecuteAction with "togglefullscreen", which works correctly on all 3 systems.
Was wondering if i'm missing something or is this a known issue?
Thanks
There's probably a confusion about the term "fullscreen". What you mean is toggling the whole Kodi application between fullscreen and windowed mode. This is what the "togglefullscreen" action does. What GUI.SetFullscreen does is toggle the video playback / music visualization between fullscreen and the normal GUI (which might have the video / visualization running in the background).