krpano is not displayed on smartphones, everything works on the desktop

  • I have been integrating a panorama with krpano for many years. It is still displayed correctly on the desktop. However, the panorama does not appear on the smartphone. I also see in debugging with the Firefox browser that when switching to the smartphone view, the integration code ‘<div id=’krpanoSWFObject‘ ...’ does not appear in the HTML at all.

    Can anyone give me a tip? Unfortunately, I don't know enough about Javascript to debug the cause myself.

    Here is the page with the panorama in question:
    360 Grad Tour durch das Ferienhaus Schwarzwald Imbirkenweg - Ferienhaus Im Birkenweg

    The whole thing is more than 10 years old. I don't really want to ‘touch’ it and I don't dare to update the script out of the blue if I don't know what the cause is.

  • Hi,

    your krpano version is:

    Code
    krpano 1.16.3 (build 2013-05-06)

    That's a bit old *wink*, but so far I see, updating should be easily possible:

    • E.g. try replacing the 'ferienhaus-schwarzwald-wohnzimmer.js' with a 'krpano.js' from the current version.
    • In the html file, remove the html5:"always+css3d" embedding setting - that would force CSS3D usage over WebGL, but that's not useful for browser compatibility.
    • The passQueryParameters:true setting in the html should be also removed, because it would allow cross-site-scripting.

    Best regards,
    Klaus

  • Danke, das hat mir einen Schritt weiter geholfen.

    • In the html file, remove the html5:"always+css3d" embedding setting - that would force CSS3D usage over WebGL, but that's not useful for browser compatibility.

    That was from this morning's testing. I understand, this can actually all be removed and thus set to default.

    If I call up an old HTML page that displays the pano without an HTML page around it, it also works on the smartphone: https://schwarzwald-ferienhaus-imbirkenweg.de/files/pano-lin…wohnzimmer.html

    I therefore assume that over time some compatibility desktop <-> smartphone has been lost in the old 1.13 script?

    If I take the krpano.js from the current version, it is also displayed again on the smartphone as a demo. But then there are new errors because includes etc. from the new version are probably missing.

    This means I can't avoid a complete update. When I see that some things were still made with Dreamweaver at the time, it gives me the creeps.

  • and I have just realised that it is apparently only due to the user agent. If I remove/change the "Android" string in the debugger, everything is displayed correctly.

    Edited once, last by d003232 (November 13, 2024 at 12:37 PM).

  • If I take the krpano.js from the current version, it is also displayed again on the smartphone as a demo. But then there are new errors because includes etc. from the new version are probably missing.

    That could because of the swf file path:

    Code
    swf:"/files/pano-linx/ferienhaus-schwarzwald-wohnzimmer.swf"

    In the current versions the Flash swf file and it's path is not used anymore and ignored.
    Try adding this to get the correct paths:

    Code
    basepath:"/files/pano-linx/"

Participate now!

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