Hi all
I'm trying to make a video play on button click but am having problems calling plugin actions via external javascript with the following code. Any ideas why this isn't working?
Code
<li class="mainbutton"><a href="#" onclick="playvideo();">WATCH VIDEO</a></li>
<script>
embedpano({swf:"krpano.swf", xml:"video.xml", target:"pano", id:"krpanoSWFObject", html5:(document.domain ? "prefer" : "auto"), passQueryParameters:true});
var krpano = document.getElementById("krpanoSWFObject");
function playvideo() { krpano.call("plugin[videointerface].togglepause();"); }
</script>