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

Upgrade an existing Jwplayer 6 to 7 : Error in vast.js


Hello,

Today, I started to upgrade our player to the new version of JwPlayer.

Everything went well ; Excepted for ads.

I have an error with vast.js :

* 18:11:44.954 TypeError: d is undefined1 vast.js:1:14345

Here is an url for test :

* http://www.uat.rtbf.be/embed/v?id=2034320 (it's our staging environment)

We use jwplayer with requirejs and almond ( https://github.com/jrburke/almond )

Regards

Mathieu

2 Community Answers

matl

User  
0 rated :

Hello,

I fixed the problem by initializing the variable window.jwplayer

# Init global variable window.jwplayer
require(["vendor/jwplayer/jwplayer"], function(jwplayer) {
return window.jwplayer = jwplayer;
});

Regards

Mathieu

Todd

JW Player Support Agent  
0 rated :

That is strange, I have not heard of anyone else having an error with vast.js because it loads as a cloud-hosted dependency. Do you see the same error when you instantiate a JW 7 player on a page without requirejs or almond?

This question has received the maximum number of answers.