fullscreen mode on start

  • hi all, it's possible to start krpano directly in fullscreen when device.fullscreensupport == true ???
    i try to set

    Code
    <action name="startup" autorun="onstart">        showlog(); 	if(device.fullscreensupport == true, 		trace('device support fullscreen'); 		set(fullscreen,true);		 , 		trace('device does not support fullscreen');	 );	.....</action>


    the log show me 'device support fullscreen' but not automatically switch in fullscreen mode.
    tnx in advance


    EDIT: now i read this on documentation
    "

    • Due Flashplayer and HTML5 security limitations the switching to the fullscreen mode will be only possible as reaction to an user input like a mouse click or a keypress! That means it's only possible switch to fullscreen mode in an onclick or onkeydown event!


    "

    i found the solution, but need at least one click in the scene

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

    3 Mal editiert, zuletzt von giovanni (11. Dezember 2018 um 17:48)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!