Windowed user preference for Player().play() method. : : : : : Kodi version 17 docs.
#1
Ref : http://mirrors.xbmc.org/docs/python-docs...layer-play
Quote:windowed : [opt] bool - true=play video windowed, false=play users preference.(default)
So how and where does the xbmc.Player().play() method pick up the user's preference when I pass false to the windowed argument ?

Code:
Plays the movie windowed in the small videowindow control of the popup dialog window :

xbmc.Player().play(url, item, True)
OR :
xbmc.Player().play(url, item, windowed=True)
Code:
Always plays the movie in full screen :

xbmc.Player().play(url, item, False)
OR :
xbmc.Player().play(url, item, windowed=False)
OR :
xbmc.Player().play(url, item)

Also, are there docs specific to version 17 of Kodi ?
Reply
#2
I had to take a quick peek at the code (which I was trying to avoid).
Looks like Kodi doesn't look for user's preference.
In MediaSettings.h and MediaSettings.cpp there is one private property m_videoStartWindowed which is only accessed by the getter and setter DoesVideoStartWindowed() and SetVideoStartWindowed() :
Code:
bool DoesVideoStartWindowed() const { return m_videoStartWindowed; }
void SetVideoStartWindowed(bool windowed) { m_videoStartWindowed = windowed; }
There is absolutely no attempt to access any user settings for windowed or full screen playback.
I only had a 3 minute peek. But I'm pretty sure.

This thread can be closed.
Reply

Logout Mark Read Team Forum Stats Members Help
Windowed user preference for Player().play() method. : : : : : Kodi version 17 docs.0