Changing url of scene in JavaScript

  • I'm trying to change the url of the image for a scene. After setting the scene image url (I assume this is the right way, no documentation on the scene api yet) I then call loadscene() to display the scene and and then reload() to refresh the url according to the api documentation for changing a url. But I'm not getting it to work. I've included a snippet of the relevant calls. If anybody has guidance on this, I'd appreciate it.

    Code
    var krpano = document.getElementById('hc_movie');
    
    
    krpano.set("scene[" +status.data.filename + "].image.sphere.url",
    viewerInterface.locationID + "/movies/" + status.data.filename + ".jpg")
    			
    krpano.call("loadscene(" + status.data.filename + ")");
    krpano.call("reload()");

Jetzt mitmachen!

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