You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, May 7th 2019, 9:27am

android and fullscreen

hi,

i noticed that android chrome displays the fullscreen button...

this makes not much sense on mobiles and just needs "button space"

does anybody know if it is possible to
auto-enter and always stay in fullscren on androids?

best, index

ps. it seems that if you switch to landscape fullscreen gets activated automatically

2

Tuesday, May 7th 2019, 11:50am

Hi,

the fullscreen button makes sense! ;-)

The only problem is that Android Chrome has changed its default behavior and doesn't switch to a 'real' fullscreen anymore.
E.g. compare to Android Firefox, that hasn't that problem.

But the next krpano release also addresses that problem - for Chrome versions older than 74 it will use a hack (an old prefixed API) for fullscreen that still provides a 'full'-fullscreen mode, and for Chrome versions 74 and up it uses a new introduced fullscreen API that allows using the 'full'-fullscreen mode again.


Quoted

ps. it seems that if you switch to landscape fullscreen gets activated automatically
That's based on another special Android Chrome fullscreen API and can be enabled or disabling using that setting:
https://krpano.com/docu/xml/#display.autofullscreen

Best regards,
Klaus

3

Tuesday, May 7th 2019, 12:21pm

oi, that is confusing .-)

my problem is i have too many buttons in my controlbar, already
and with an additional fs-button they overflow on android phones *rolleyes*

i was hoping it is possible to get something iphone/ios like on android
the app always on auto-fullscreen without need of a fs button.

something like display.autofullscreen but also for portrait

4

Tuesday, May 7th 2019, 12:38pm

something like display.autofullscreen but also for portrait

Entering fullscreen mode always requires a user-gesture or with the special Chrome API a 'rotation to landscape'.

You could also use the global onmousedown or onclick events to switch to fullscreen mode but that can be also a bit annoying when it happens constantly...

Best regards,
Klaus

5

Saturday, May 11th 2019, 9:50am

thanks for the infos klaus,

i had already read that it needs an user interaction,
but i didnt know about the 'rotation to landscape' api

conclusion is probably,
that there is no way around the fs button on chrome android
*pinch*