Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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>

1 Community Answers

Donni

JW Player Support Agent  
-2 rated :

Hey there. Check out our basic embed page. Is there a reason why you are defining the location of the flash player?

This question has received the maximum number of answers.