krpano is not working for html5

  • I don't know if you get any errors but i see this: ERROR: loadscene() - scene "null" not found. Its appear when i hide control bar and use arrows to go to the next or prev scene.
    Probably your starup action generate this error but without some code it's hard to say.

  • I use Standart multires convert..
    Just add logo and copyright layer..

    KRPANO 1.19-pr5
    XML

    --------------------------------- HTML -----------------------------------

    HTML
    <!DOCTYPE html><html><head><script>  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-71871005-1', 'auto');  ga('send', 'pageview'); <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />	<meta name="apple-mobile-web-app-capable" content="yes" />	<meta name="apple-mobile-web-app-status-bar-style" content="black" />	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />	<meta http-equiv="x-ua-compatible" content="IE=edge" />	<style>		@-ms-viewport { width:device-width; }		@media only screen and (min-device-width:800px) { html { overflow:hidden; } }		html { height:100%; }		body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }	</style></head><body>
    <script src="s69g4.js"></script>
    <div id="pano" style="width:100%;height:100%;">	<noscript><table style="width:100%;height:100%;"><tr style="vertical-align:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>	<script>		embedpano({swf:"s69g4.swf", xml:"s69g4.xml", target:"pano", html5:"fallback", mobilescale:1.0, passQueryParameters:true});	</script></div>
    </body></html>
  • Hmmm when I try your startup action at my tour I get the same error as you. You can try this:

    Zitat

    <action name="startup">
    if(startscene === null, copy(startscene,scene[0].name));
    loadscene(get(startscene), null, MERGE);
    </action>

    Hope it's gonna work for you

    EDIT: Ohh and call your startup action in <krpano> tag, like this: <krpano version="1.19" title="Virtual Tour" onstart="startup">

Jetzt mitmachen!

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