
CloudFront RTMP + JW Player 7.7.1 "Flash Plugin Failed to Load"
Hi,
I am trying to embed and play an .mp4 video in AWS CloudFront using an RTMP distribution. I am using JW Player 7.7.1.
I am using embedding instructions from Amazon: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingJWPlayer.html
I have tried MS Edge, Firefox and Chrome.
All browsers give the same result --> Flash Plugin Failed to Load. I checked the JS code with a debugger and there is a failure: jwplayer.flash.swf:1 Uncaught SyntaxError: Invalid or unexpected token
There seems to be a problem in the /jwplayer.js script file or in the intialization of the shockwave file /jwplayer.flash.swf
JW Player version 7.7.0 and 7.7.1 seem to be very new. Where can I find downloads to older versions?
I would be grateful for any help.
Here is the HTML JS script calls I'm using:
---
<script type='text/javascript' src='http://dxxxx.cloudfront.net/jwplayer/jwplayer.js'></script>
<script type='text/javascript' src='http://dxxxx.cloudfront.net/jwplayer/jwplayer.flash.swf'></script>
<script>jwplayer.key="licensecode";</script>
---
And the embedding:
<div id="my-video"></div>
<script type="text/javascript">
jwplayer("my-video").setup({
file: "rtmp://sxxxx.cloudfront.net/cfx/st/my_video.mp4",
width: "720",
height: "480",
primary: "flash"
});
</script>
-------------
br: g.h.