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

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.

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

Can you provide us with a URL to a reproduction page showing the behavior with your RTMP stream? We have not heard of any other reports of issues with RTMP streams coming from Cloudfront. I also have a demo page set up that is successfully able to play a Cloudfront-hosted RTMP stream.

Thank you.

g...

User  
0 rated :

Hi Alex,

Thanks for your quick reply. Unfortunately the demo link you sent doesn't open for me (unable to establish connect with your server).

I am including my URL --> http://d164bkukzu8rv3.cloudfront.net/debug.html

br: g.h.

Alex

JW Player Support Agent  
0 rated :

Hi there,

Sorry about the link – sometimes links we provide do not work properly when they are posted on our community forums. With that being said, I am seeing the error message for jwplayer.flash.swf on your page, but when I try to play the stream on a test page or on our Stream Tester, I do not get that error. It may have something to do with the fact that you’re trying to self-host that file. Unless you have a specific reason to, you shouldn’t have to embed jwplayer.flash.swf on your page, the player will request it automatically.

However, even when that error does not display, your RTMP stream is not playing in the player. It is also not playing in Wowza’s test RTMP player either, so this leads me to believe that there is an issue with the stream itself. The stream does appear to play in VLC but with some major playback issues every few seconds.

I would recommend contacting Cloudfront for further troubleshooting as the issue does not appear to be with our player.

Please let me know if you need any more help or have any other questions.

Thank you!

g...

User  
0 rated :

Thanks Alex for your time!

I will contact AWS about this issue.

br: g.h.

Alex

JW Player Support Agent  
0 rated :

Not a problem!

This question has received the maximum number of answers.