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

Need you help: "Error setting up player: invalid license key"


Hello dear community members!

I need your kind help. We have many pages with self-hosted players, which are playing videos for our mail list subscribers. After upgrading from selfhosted JW6 to JW7 via CDN many of our subscribers started complaining about different errors, which are preventing the work of the player. One of these pages: http://timur-smirnov.com/video/v1ke4dev.html and another one: http://timur-smirnov.com/video/v2magprivlekatelnost.html

Me and my boss have no problems watching these videos, but some of the subscribers have. I don't know how to track this error.

One of the screenshots displaying error: https://dl.dropboxusercontent.com/u/14109412/screenshot.jpg
And another screenshot from another subscriber: https://dl.dropboxusercontent.com/u/14109412/screenshot2.jpeg

18 Community Answers

Todd

JW Player Support Agent  
0 rated :

You cannot have JW6 and JW7 player libraries on the same page, as this can cause the license key errors you are seeing. Another cause of the JW7 license key error is if the viewer’s computer time is not correct.

I just checked http://timur-smirnov.com/video/v1ke4dev.html and http://timur-smirnov.com/video/v2magprivlekatelnost.html and both videos are playing correctly for me. Do you have a link to a video where you are getting this error?

stalker_1894 N/A

User  
0 rated :

Okay. On my computer this video plays correctly too. I am trying to help our clients to get rid of this nasty error.

It seems that, as you said, some of complaining people have incorrect time / date configuration on their computer.

How can I provide them a correct fallback on this error or display some message to help them to watch our videos without any player errors?

Thank you very much.

Todd

JW Player Support Agent  
-1 rated :

My suggestion would be to create a custom error message to display in an on(‘setupError’) event. Here’s a sample:

jwplayer().on(‘setupError’,function(e){
alert(“Error — please check your computer’s time setting to make sure it is correct.”);
});

jherrieven

User  
1 rated :

Probably a better solution would be to override the time-bombed licence key generated in the CDN hosted JW library with your non-time-limited self-hosted JW7 key.

Your key can be found in the JW Dashboard under Players > License Keys & Downloads > JW Player 7 (Self-Hosted).

Copy this key and add the following after your library call - as follows:

<script type="text/javascript" src="http://content.jwplatform.com/libraries/ZtwlFUhi.js"></script>
<script>jwplayer.key="INSERT_YOUR_KEY_HERE";</script>

James Herrieven

===================================================
Powered by Haiku
http://powered-by-haiku.co.uk/
---------------------------------------------------
Tatami for Online Video
http://dev.powered-by-haiku.co.uk/solutions/tatami/
---------------------------------------------------
skype: JamesHerrieven
email: james[at]haiku[dot]co[dot]uk
===================================================

stalker_1894 N/A

User  
0 rated :

Thank you, Todd and James. The fact is we have no key :) We are using free edition.

stalker_1894 N/A

User  
0 rated :

That's great that I have some ability to display a message to a viewer. But it is incorrect that he has to configure the time on his PC to watch our videos. Practically, 50% of people at least will go to another website.

jherrieven

User  
1 rated :

@stalker, you do have a key - that's whats causing the problem! Even free versions of JW7 require a key.

In your JW player library file pulled from the CDN, the key is dynamically generated each time the file is requested, with a timeout of +1hr - check out the JS file towards the bottom...

If you override this with your self-hosted key you will good to go as the self-hosted key is not time-restricted.

James

ilc.video

User  
0 rated :

Hi
my player was fine till yesterday and suddenly got error setting up player :invalid license key.
I am using free license. and i don't understand what is going on... . i did not changed anything!
Well correct me if wrong or skipped a stepi:
1- download JW Player 7 (Self-Hosted) zip file extract it to www folder. it would be jwplayer-7.2.4 folder.
2- use this code in page:
<div id="player-wrap">
<div id="player"><script src="//content.jwplatform.com/players/Q34iQrb4-pBu6i14O.js"
type="application/javascript"></script><script>jwplayer.key="my jw7 license key";</script></div>
</div>
thats all! right?

ilc.video

User  
0 rated :

My page is fa.ilc.video

jherrieven

User  
0 rated :

@ilc - Because your JW library file is producing the player embed code too - rather than just serving the JW library code - the key override will not work, as the player is instantly invoked using the key included in the library file.

Without you changing your embed approach, or JW coming to their senses, realising that their model is ridiculously prone to issue and changing it on their side, there is not much you can do to avoid this.

James

Todd

JW Player Support Agent  
0 rated :

@ilc.video I am not seeing any errors on your page at http://fa.ilc.video/. Are you still seeing the Invalid License Key error on your side?

stalker_1894 N/A

User  
0 rated :

Writing to say: thank you for your attention, James. Finally, our subscribers who had the problem with invalid license key confirmed that the problem is gone and the videos are playing correctly.

ilc.video

User  
0 rated :

unfortunately yes i am seeing the error and my manager in another city is seeing this problem and he is really sad:((
please help me!

Todd

JW Player Support Agent  
0 rated :

@ilc.video – Does the date and time displayed at http://time.is/ match the date and time on your computer?

ilc.video

User  
0 rated :

Yes dear Todd. date and time is ok. i have this problem every where, not just my pc.

Todd

JW Player Support Agent  
0 rated :

I was troubleshooting the same issue with a customer yesterday. It turns out they had a web cache / proxy on their internal firewall that was caching their cloud-hosted player .js. Unfortunately this was causing the invalid license key error as our cloud-hosted players use a rotating key. Do you know if your network is doing something similar? Are you also getting the error in the player on www.jwplayer.com?

ilc.video

User  
0 rated :

No i don't see video playing on jwplayer website too. and i don't know if there is sth like that or not. how can i make sure. your player was working good for almost tow months. but its not working now :((

Todd

JW Player Support Agent  
0 rated :

Are you using some sort of ad blocker or a privacy setting that is blocking Javascript?

This question has received the maximum number of answers.