Load videourl from html file to xml skin

  • Hello, I need to load a videourl from html file by javascript.
    How to pass the javascript variable value to the viewer?
    URLvideo is not recognized as a variable in this code

    Code
    <script>var URLvideo='files/test1/video.mp4';
    var viewer = createPanoViewer({swf:"krpano.swf"});
    viewer.addVariable("xml", "skin.xml");
    viewer.addVariable("target", "pano");
    viewer.addVariable("passQueryParameters", true);
    viewer.addVariable("onstart", "set(plugin[video].videourl,URLvideo");
    viewer.embed("pano");
    </script>

    thanks in advance...

  • Hi,

    and welcome to the forums *smile*
    This topic is frequently discussed here and you should find the correct answer using the search-function. There are also js-examples coming with krpano. You may want to take a look at the "javascript-interface"-folder coming with the viewer-package.

    Best regards
    Nupsi

Participate now!

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