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

require.js and jwplayer7

I'm trying to upgrade from jwp6 to jwp7.

I currently use require.js with jwp6 without any issues, but trying to get it to work with jwp7 doesn't seem to be working.

The jwplayer window variable is not being exported properly. Even using a shim with require.js doesn't help. The file is being loaded, and executed but it simply doesn't play nice with require.js and as a result 'jwplayer' is undefined rendering the script useless.

1 Community Answers


JW Player Support Agent  
0 rated :


In general whenever you introduce a 3rd party library that controls the Javascript queue it’s easy to call something when it’s not instantiated yet it seems. We cannot provide much help on integrating with require.js but I’ll have a look. Could you send me the test page that is having the issue?

This question has received the maximum number of answers.