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

jwPlayer and RequireJS


I know this is a zombie of a previously closed post, but I'm having issues getting jwplayer to recognize my key on an app using RequireJS.

The previous post indicated that placing the key in the jwplayer.js file, or include it in another module file would work, but I'm not having any luck with it. Since jwplayer is loading as a module, I figured adding the key after the file is loaded and before the player is initialized would work, but it won't. Placing the key in the head of the document throws an error as jwplayer hasn't even been set yet.

My key was working fine before refactoring to RequireJS, so I know the key is legit. What am I doing wrong?

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link? I have not used RequireJS before, though.

JW Player

User  
0 rated :

http://205.186.146.190/

I'm loading the key before any players get initialized, but it still has the watermark. Thanks for looking into it.

Ethan Feldman

JW Player Support Agent  
0 rated :

Where is the player on this page? I just see images and text.

JW Player

User  
0 rated :

Sorry, they're all interior pages. Here: http://205.186.146.190/videos/lot-can-happen-48-hours/

Ethan Feldman

JW Player Support Agent  
0 rated :

Where is the key being loaded from? I only see it commented out in the source.

JW Player

User  
0 rated :

I have it loaded in the bottom of the included jwplayer.js file. It doesn't load directly in the markup, but rather gets included as a module using requirejs, so a look at loaded scripts via Network dev tools will show the source.

Thanks for the attention on this, really appreciate it!

Ethan Feldman

JW Player Support Agent  
0 rated :

Got it. Are you sure that is the right key from a paid account?

JW Player

User  
0 rated :

That key was sent to me from my client after they purchased an account. When activating a key, is there a need to specify a domain it's associated with? Might be the case that we're using the IP address currently as there's no domain associated with it yet.

Ethan Feldman

JW Player Support Agent  
0 rated :

As long as the key is a license key, it will work. If you want to email me with your client’s information I can look up their key in our admin – ethan [at] jwplayer [dot] com.

This question has received the maximum number of answers.