Posts: 47
Joined: Feb 2009
Reputation:
0
Hi,
is there a way to detect within a python script that the video player is in fullscreen mode ?
Thanks
Posts: 47
Joined: Feb 2009
Reputation:
0
Yes, I know that.
I have done a small python script, and I would like to differentiate the behaviour when someone click on an icon when the player is a fullscreen or not.
An example would be a button to set the player is fullscreen (but not a toggle)
Thanks.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
videoplayer.isfullscreen (info bool)
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
uhm, it returns true if the video player is in full screen and false if it's not. used for visibility conditions...
it is NOT part of the python player object, as i said it is an info bool.
if there is no python method for grabbing info bools, you need to do it through the http api
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
well, i did not say you had to use the http api. some simple grepping brought
xbmc.getCondVisibility(condition)
ie. xbmc.getCondVisibility('videoplayer.isfullscreen')
voila
Posts: 1,034
Joined: Sep 2004
Reputation:
146
Dan Dare
http://www.xbmc4xbox.org
Posts: 1,034
2009-05-25, 17:10
Thank spiff, much appreciated!