Initial fullscreen possible?

  • For a kiosk displaying a slideshow, I would like to have all panos start (and remain) in fullscreen.
    But just putting "set(fullscreen, true);" in setuppano() does not work "due to a Flash security limitation" -- even though the player is in HTML5 mode, on Chrome browser.
    Is there a way to get what I want?

  • Hi,
    when automatically starting in fullscreen is not possible: idle, startup(), events onxmlcomplete and other, onloaded, etc.
    That means, start manually should be works after touch, clicks and other actions by user side only!
    Try this, set fullscreen when you do first click in panorama:

    Code
    <events onclick="if(device.fullscreensupport, set(fullscreen, true); );"  />

    See documentation: https://krpano.com/docu/actions/#fullscreen

    Quote

    Note - there is a Flashplayer security limitation - switching to fullscreen mode is only possible as reaction of an user input like a mouse click or a keypress! That means you can only switch to fullscreen mode in a onclick or onkeydown event.


    Good luck! *wink*

    Panoreal — to make and see this wonderful world! *whistling*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!