Error loading jwplayer_flash.swf
Hi,
I try to load the jwplayer but all browser (Chrome, Firefox, Explorer) give me an error. I get the error if "Uncaught SyntaxError: Invalid or unexpected token". Navigating to the error, it takes me to the .swf file to the first line, 4th character. I don't understand what I'm doing wrong.
My code is:
<HTML>
<HEAD>
<TITLE>Amazon CloudFront Streaming with JW Player 7</TITLE>
<script type='text/javascript' src='http://XXXXXX.cloudfront.net/jwplayer.js'></script>
<script type='text/javascript' src='http://XXXXXX.cloudfront.net/jwplayer_flash.swf'></script>
<script>jwplayer.key="G6CGER4L0o6OsdnlJc2kKztN+jYJzVm5Zw/6NA==";</script>
</HEAD>
<BODY>
<H1>This video is streamed by CloudFront and played by JW Player 7.</H1>
<div id="my-video"></div>
<script type="text/javascript">
jwplayer("my-video").setup({
file: "rtmp://XXXXXX.cloudfront.net/cfx/st/Sample.mp4",
width: "720",
height: "480",
primary: "flash"
});
</script>
</BODY>
</HTML>