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...