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

Bug report - Youtube player (v. 7.7.4) throws JS error "Y.getVideoData is not a function'


Hi,

A new error started popping up today and it's quite critical for us. We're using JW Player v. 7.7.4 to play Youtube videos. When clicking on play, an exclamation mark appears and the error below is thrown. When clicking again it does play.

TypeError: Y.getVideoData is not a function
at V (/player/v/7.7.4/provider.youtube.js:1:2920)
at load (/player/v/7.7.4/provider.youtube.js:1:3702)
at l.a (/player/v/7.7.4/provider.youtube.js:1:2877)
at l.<anonymous> (/player/v/7.7.4/provider.youtube.js:1:1218)
at b (/player/v/7.7.4/provider.youtube.js:1:1698)
...

I know that JW Player has dropped Youtube support because of the Youtube API's inconsistencies but would love to get some help. For our use case JWPlayer 7 + Youtube is still our best choice and we'd like to keep using it.

Thanks,

Ben

5 Community Answers

Irek

User  
1 rated :

the same problem https://support.jwplayer.com/customer/portal/questions/17189166--jwplayer-problem-with-youtube

Donni

JW Player Support Agent  
1 rated :

Since we dropped support there is little we can do to help other than recommend you try a later version of JW 7.

b...

User  
0 rated :

Thanks. I updated to 7.12.11 and the issue seems to be fixed.

b...

User  
0 rated :

Spoke too fast. Not fixed. For anyone else experiencing this problem, there are 2 related issues on stackoverflow:

https://stackoverflow.com/questions/47282235/jwplayer-v7-xx-getvideodata-is-not-a-function-issue
https://stackoverflow.com/questions/47282202/youtube-iframe-api-getvideodata-is-removed-how-to-get-title

art

User  
1 rated :

We're having this problem too. If we click on the play button, we get the "Y.getVideoData is not a function" error. However, if you click on the video pane, no error (playback starts). So our thought is that we could simply remove the "getVideoData" function from the version of JWP that we are using (or change it to some dummy function that works). Note that we don't need the video title from YouTube, or presumably any of the other "video data." Is this possible? I can't seem to find getVideoData anywhere in jwplayer.js.

This question has received the maximum number of answers.