
javascript event not working
The flash video works, but none of the event javascript methods execute.
I setup a demo here showing this issue, but do not want to publish it publicly, so if someone who works for longtailvideo.com can have me privately submit it, I'd appreciate. We just bought a full license for it too.
I'm doing the most basic alert on the event method onReady.
I thought maybe it was because I wasn't reference the jwplayer.js script correctly, but that isn't the issue. I tried hosting the jwplayer.js on my amazon S3 host, and my web server. Didn't make a difference. This demo has it hosted on the web server.
bc.. <div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "url to swf file here",
file: "url to file here",
allowfullscreen: true,
wmode: "opaque",
height: 300,
width: 620,
allowscriptaccess: "always",
stretching: "exactfit",
events: {
onReady: function() {
alert('ready');
}
}
});
</script>