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

Error loading player: Could not load player configuration


jwplayer6 will not play a cloudfront rtmp stream in flash mode. It instead loads the flash player and displays the message: "Error loading player: Could not load player configuration"

_Relevant Info and Details_

1) I have confirmed that the rtmp URI is valid via http://d1k5ny0m6d4zlj.cloudfront.net/diag/CFStreamingDiag.html (Note, that the URI will only be valid for approx 24 hours from this post.)

2) I have installed and enabled a flash debug build but no additional info is logged to flashlog.txt other than "LOG (STARTUP: Error occurred during player startup: Error loading player: Could not load player configuration)"

3) I have confirmed via chrome dev tools that the jwplayer.flash.swf file is being loaded

4) The same rtmp URI works correctly with a jw5 instance

5) jw6 is working correctly with a mp4 URI

6) The html/js is being served up from the local filesystem, since it will actually run under phonegap, so unfortunately I can't provide a URI.
a) I am aware that the jwplayer.js _flashVersion_ function will shortcut out if the OS is Android but I have no choice but to monkeypatch or edit this function since we don't own the source for the video being streamed and only rtmp URI's are provided. (Note: that the application is targeting a specific Android tablet so we have total control over the OS)

_Code_

bc.. <script type="text/javascript" src="http://adelante-criterion.s3.amazonaws.com/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="theCorrectKey";</script>



bc.. jwplayer("videoContainer").setup({
primary: "flash",
file: "rtmp://s1h1vjrysv1hbw.cloudfront.net/cfx/st/mp4:2578FEN?Expires=1357432561&Signature=QyO32SMPai5jUWUq62lZz-tT~73qFs08-wi8OlB6Cvnc14AZE5QCn0jrxX0uMXImH9huCkKFPlf35m1tIhLIgOxFsB5yTcaZzIdZNTD~jgMe6xi4mMIKwStRCdzxuxPNQtRMEeoT64Wa6~Rpbuw41J~wQj8lWh~OYaXCQdyy~IA_&Key-Pair-Id=APKAJVYLRNCKINTNIEKQ",
height: 360,
width: 640,
plugins: {}
});

13 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

Per comment #6 above I don't have a link.

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you put up something so we can debug?

JW Player

User  
-1 rated :

This should work:

1) Create a file on your filesystem 'test.html' with the following code
bc.. <html>
<head>
<script type="text/javascript" src="http://adelante-criterion.s3.amazonaws.com/jwplayer.js"></script>
<!--<script type="text/javascript">jwplayer.key="theCorrectKey";</script>-->
</head>
<body>
<div id="videoContainer"></div>
<script type="text/javascript">
window.onload=function(){
jwplayer("videoContainer").setup({
primary: "flash",
file: "rtmp://s1h1vjrysv1hbw.cloudfront.net/cfx/st/mp4:2578FEN_720p.mp4?Expires=1357664647&Signature=lIN9OmYWyZjaytYeF816nkEkZE0vF0BvgAopVR1rMgjSRpDGYU-StRb2UmVH5ZXDWUpxf2hzuj8p6~CmhD6scNXbTj-is37p6sMY-ZsmEoK1QdM2FNzO0xpJJtBdpTLoRVp5ldSn2wmJLynkZGXO8jYjsswT85J9a5i5JC6snvM_&Key-Pair-Id=APKAJVYLRNCKINTNIEKQ",
height: 360,
width: 640,
plugins: {}
});
}
</script>
</body>
</html>


2) Load it in chrome

Note: you may need to launch chrome from the command line with the flags '--allow-file-access-from-files --disable-web-security'. If running on OSX make sure that you have completely killed the previous chrome process (i.e. right-click in the dock and select quit).

Example command to launch chrome in background with no security:
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --allow-file-access-from-files --disable-web-security &

JW Player

User  
0 rated :

Also note that the file URI in the above sample will only be valid for 24 hrs. I can regenerate another if needed.

Ethan Feldman

JW Player Support Agent  
1 rated :

I just tested this on my localhost, the player loads fine.

But I get the error that the file can’t be found on the server.

Are you sure this file exists? – rtmp://s1h1vjrysv1hbw.cloudfront.net/cfx/st/mp4:2578FEN_720p.mp4?Expires=1357664647&Signature=lIN9OmYWyZjaytYeF816nkEkZE0vF0BvgAopVR1rMgjSRpDGYU-StRb2UmVH5ZXDWUpxf2hzuj8p6~CmhD6scNXbTj-is37p6sMY-ZsmEoK1QdM2FNzO0xpJJtBdpTLoRVp5ldSn2wmJLynkZGXO8jYjsswT85J9a5i5JC6snvM_&Key-Pair-Id=APKAJVYLRNCKINTNIEKQ

JW Player

User  
0 rated :

Appologies - I've been tweaking streaming params while debugging. I'll leave them alone until you've investigated.

Use this file:

rtmp://s1h1vjrysv1hbw.cloudfront.net/cfx/st/2578FEN_720p?Expires=1357681328&Signature=e9DkDIrwwzxYh2LmctDWl02Q5wJEz7s9nu-uE3dZrb4D4T5DKuTGNWkFWIe1GVjTfDcPVeENERExIhFKgpYLpOXJLgnp6jrHqG9VUY6fLzWwLcih0j0SkUlmKKol8v5zUlZt6HSMOm1I89JzrOPqN46U5VZFQzaF5bjsc-a84ao_&Key-Pair-Id=APKAJVYLRNCKINTNIEKQ

You can confirm that the file can rtmp stream by going to:

http://d1k5ny0m6d4zlj.cloudfront.net/diag/CFStreamingDiag.html

and entering:
_Streaming distribution:_ s1h1vjrysv1hbw.cloudfront.net
_Video filename:_ 2578FEN_720p?Expires=1357681328&Signature=e9DkDIrwwzxYh2LmctDWl02Q5wJEz7s9nu-uE3dZrb4D4T5DKuTGNWkFWIe1GVjTfDcPVeENERExIhFKgpYLpOXJLgnp6jrHqG9VUY6fLzWwLcih0j0SkUlmKKol8v5zUlZt6HSMOm1I89JzrOPqN46U5VZFQzaF5bjsc-a84ao_&Key-Pair-Id=APKAJVYLRNCKINTNIEKQ

Ethan Feldman

JW Player Support Agent  
0 rated :

This works fine. I just copied your sample code onto localhost, used that file, played it, in Chrome, it works fine, no errors.

JW Player

User  
0 rated :

Can you clear your cache and confirm that you are downloading jwplayer.js from the location in the script tag? Also, are you attempting this on OSX or Windows?

I can definitely confirm that it does not work for me in either chrome of firefox on OSX (clean browser cache).

My complete test.html file is exactly as follows:

bc.. <html>
<head>
<script type="text/javascript" src="http://adelante-criterion.s3.amazonaws.com/jwplayer.js"></script>
<!--<script type="text/javascript">jwplayer.key="theCorrectKey";</script>-->
</head>
<body>
<div id="videoContainer"></div>
<script type="text/javascript">
window.onload=function(){
jwplayer("videoContainer").setup({
primary: "flash",
file: "rtmp://s1h1vjrysv1hbw.cloudfront.net/cfx/st/mp4:2578FEN_720p?Expires=1357681328&Signature=e9DkDIrwwzxYh2LmctDWl02Q5wJEz7s9nu-uE3dZrb4D4T5DKuTGNWkFWIe1GVjTfDcPVeENERExIhFKgpYLpOXJLgnp6jrHqG9VUY6fLzWwLcih0j0SkUlmKKol8v5zUlZt6HSMOm1I89JzrOPqN46U5VZFQzaF5bjsc-a84ao_&Key-Pair-Id=APKAJVYLRNCKINTNIEKQ",
height: 360,
width: 640,
plugins: {}
});
}
</script>
</body>
</html>



JW Player

User  
0 rated :

I also just tested this same local file on a separate Macbook Pro as well as a windows box (cut and paste from the above post) and I get the error.

Both of these machines were not used for development - i.e. no dev-env-related noise.

JW Player

User  
0 rated :

Problem solved (part 1).

The problem was that flash security seems to restrict some aspect of the player loading when the html being rendered is loaded from the local filesystem.

The solution is to go to flash Global Settings and add a Trusted Developer Location specifying the directory in which the html being loaded exists on the filesystem.

This makes sense on a desktop browser where you would typically not be loading a web page from local filesystem (although it did work using jwplayer5 for some reason). Running in PhoneGap on a device is a different story of course... I will update this thread with my cordova-specific findings once I've had a chance to run it on a device.

JW Player

User  
0 rated :

Problem solved (part 2)

Does not work on mobile device (tested on samsung galaxy tab2 with flash installed) so unfortunately if you're in the same boat as I http streaming is your only viable option.

Ethan Feldman

JW Player Support Agent  
0 rated :

1) Glad you got it. thanks for sharing.

2) That is correct, because RTMP is really not supported on these devices.

This question has received the maximum number of answers.