How can a script detect if video is in FullScreen mode?
#1
Hi,

is there a way to detect within a python script that the video player is in fullscreen mode ?

Thanks
Reply
#2
nobody ?
Reply
#3
Player.isPlayingVideo() tells you whether the video is playing (http://xbmc.sourceforge.net/python-docs/...tml#Player), I don't know about the full-screen part.

What do you to use it for?
Reply
#4
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.
Reply
#5
videoplayer.isfullscreen (info bool)
Reply
#6
Hey Spiff,

the method doesn't seem to be in the docs (http://xbmc.sourceforge.net/python-docs/...tml#Player), what does the boolean parameter do?
Reply
#7
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
Reply
#8
Thanks Spiff.

Ok, I got the list of boolean conditions:

http://wiki.xbmc.org/index.php?title=Lis...Conditions

no idea which HTTP API function to use to get them...

http://wiki.xbmc.org/?title=List_of_Built_In_Functions
Reply
#9
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
Reply
#10
Thumbs Up 
Thank spiff, much appreciated!
Reply

Logout Mark Read Team Forum Stats Members Help
How can a script detect if video is in FullScreen mode?0