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

Invalid License key


Hello guys,

I have a problem with the license key.
http://www.lanacion.us/

I've used the embed code from the Dashboard, and paste the <script> cloud-hosted player code in the header, but it shows me the following error :
Error setting up player:
Invalid license key

Here is my code

<script src="http://jwpsrv.com/library/K7g9XryNEeS8AQp+lcGdIw.js"></script>
<script type="text/javascript">

(function() {


var dVideo = document.createElement("div");
dVideo.id = "video";
dVideo.className = "video";


document.onreadystatechange = function(){
if(document.readyState === "complete"){
document.body.insertBefore(dVideo,document.body.firstChild);
var playerInstance = jwplayer("video");
console.log(playerInstance);
playerInstance.setup({
playlist: "http://content.jwplatform.com/feeds/ZZA07xFG.rss",
width: 350,
height: 250,
volume: 5,
autostart: true,
advertising: {
client: "vast",
tag: "https://pubads.g.doubleclick.net/gampad/ads?sz=400x300&iu=/33437307/Kawasaki_2&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]"
}
});

playerInstance.on('adRequest', function(){
console.log('dolor ahi...');
});
}
}
})();
</script>

Any ideas??

4 Community Answers

jherrieven

Best Answer 

@vincent

You are using the JW6 player, but trying to use the newer JW7 approach to attach event listeners.

Check the following for the correct JS approach using JW6:

http://support.jwplayer.com/customer/en/portal/articles/2051720-jw6-javascript-api-reference

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
===================================================

View in conversation

Donni

JW Player Support Agent  
0 rated :

Hi Vincent,

Thanks for contacting JW Support. I’m Donni, one of the Support Engineers at JW Player.

Can you set this up on a test page? The formatting is distorted via e-mail.

Donni

v...

User  
0 rated :

Hi Donni,

Here is the page:

http://latinongroup.com/test/testeo.html

But now the problem isn't the license key, this time the player is not recognizing the .on(events) in the page you will see what i am talking about

Donni

JW Player Support Agent  
0 rated :

Hey Vincent,

I’m not familiar with the adRequest call, can you show me which of our documents you sourced that from?

Donni

jherrieven

Best Answer  User  
0 rated :

@vincent

You are using the JW6 player, but trying to use the newer JW7 approach to attach event listeners.

Check the following for the correct JS approach using JW6:

http://support.jwplayer.com/customer/en/portal/articles/2051720-jw6-javascript-api-reference

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
===================================================

This question has received the maximum number of answers.