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

JWP 7.7.4 errors cause not validated javascript .


Web Developer in Firefox 50 on Windows 10 warns me about those errors:

ReferenceError: ytcfg is not defined: 4YtTamLG62g:10:22

Error: WebGL: getParameter: parameter: invalid enum value <enum 0x9246> base.js:505:119

“mozHidden” e “mozVisibilityState” are deprecatet.Use “hidden” e “visibilityState” without prefix. www-embed-player.js:653:291

Can not perform "postMessage" to "DOMWindow": the target originally indicated ( "https://www.youtube.com") does not correspond to the origin of the target window ( "http://www.alecos.it") .

Here is an example:

http://www.alecos.it/new/225634/225634.php

My config is:

<div id="container_182016173149377">&nbsp;</div><script type="text/javascript">jwplayer("container_182016173149377").setup({file: "https://www.youtube-nocookie.com/v/4YtTamLG62g?rel=0", type: 'youtube', height: 315, width: 560, primary: 'html5', image: "https://img.youtube.com/vi/4YtTamLG62g/hqdefault.jpg"});</script><noscript><span class="no-plugin">&nbsp;</span></noscript>

How to solve?

Thanks.
--
Alessandro

9 Community Answers

a...

User  
0 rated :

Another live example: http://www.alecos.it/diary.php

Alex

JW Player Support Agent  
0 rated :

Hi Alessando,

This appears to be an issue on YouTube’s side. If I embed the same video using YouTube’s embed code and view it in Firefox 50, I also see the “ytcfg is not defined” and “‘mozHidden’ and ‘mozVisibilityState’” errors in the console. The WebGL error that appears on your reproduction page does not reproduce on ours, but the error is coming from base.js on YouTube’s servers so it does not appear to be related to our player.

You can see the test page I embedded the YouTube video on here: http://qa.jwplayer.com/~abussey/demos/2016/nov/95048-youtube.html

Thank you.

a...

User  
0 rated :

Thanks for your reply, the errors are all on YouTube and so nothing can be done for fixing this issue? Anyway, thanks. I hoe in future this issue will have its end fixing it by YouTube directly... it's a bit strange to see this validation errors on javascript.

Nobody can advise YouTube of this issue?

Thanks.

--
Alessandro

Alex

JW Player Support Agent  
0 rated :

Hi Alessando,

It looks like there are some reports of this behavior on YouTube’s Help Forum. For example: https://productforums.google.com/forum/#!topic/youtube/3Z7dSnwkCH4;context-place=topicsearchin/youtube/ytcfg$20is$20not$20defined

a...

User  
0 rated :

Posted there, thanks! I really appreciate your efforts.

Thank you very much.
--
Alessandro

Alex

JW Player Support Agent  
0 rated :

Not a problem!

a...

User  
0 rated :

Google solved this issue but there are some errors that Google could fix by itself... I opened a topic on Google Forum:

https://productforums.google.com/forum/#!topic/youtube/ZubslJcYBA0;context-place=forum/youtube

If someone want publish a reply there is welcome.

Thanks you!

Kind regards.

Randy

JW Player Support Agent  
0 rated :

Hello Alessandro,

We will look at the post but at the moment we cannot provide complete support on the matter as many of the features within YouTube are rapidly changing. Thank you for the update and we look forward to any feedback Google will provide.

Kindly,

Randy Lemoine
Primary Support Engineer
JW Player Support Team
www.jwplayer.com

a...

User  
0 rated :

Recently, I noted some errors handled to JWP and a good begin could be fix them...

Unknown property '-moz-osx-font-smoothing ". omitted statement.
Unknown property 'user-select ". omitted statement.
Pseudo-class or pseudo-element unknown "-webkit-media-controls-playback-start-button". Set of rules ignored because of the wrong switch.
Unknown property '-moz-osx-font-smoothing ". omitted statement.
Expected end of the pseudo-class selector or user action after pseudo-element, but it's been found '. " Set of rules ignored because of the wrong switch.
Unknown property "touch-action". omitted statement.
Pseudo-class or pseudo-element unknown "-webkit-media-controls". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Expected end of the pseudo-class selector or user action after pseudo-element, but it's been found '. " Set of rules ignored because of the wrong switch.
Unknown property '-moz-font-smoothing ". omitted statement.
Unknown property '-moz-osx-font-smoothing ". omitted statement.
Unknown property '-moz-osx-font-smoothing ". omitted statement.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track container". Set of rules ignored because of the wrong switch.
Unknown property '-moz-osx-font-smoothing ". omitted statement.
Pseudo-class or pseudo-element unknown "-webkit-media-text-track-display". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-unknown element "cue". Set of rules ignored because of the wrong switch.
Pseudo-class or pseudo-element unknown "-webkit-media-text-display-backdrop-track". Set of rules ignored because of the wrong switch.
Unknown property '-moz-font-smoothing ". omitted statement.


These errors are directly handled to JWP scripts. I think that Google will fix its errors in a long period of time but you can trying to fixing your errors in the while...

If I take a look on my website I see the errors handled to Google YouTube and other directly handled to your JWP. I dream a website without errors and If you can see my markup is perfect with the exception of external service as YouTube & JWP. I'd like my website well validated... on my side I provided a perfect markup without syntax errors, my css is free of errors. my javascript is free of errors. So if I remove JWP from my website may website will be validated over 3 point: javascript, css, html/php.

But I'd like to use JWP that is very great for playing video... so I hope in the meanwhile you can fix your errors.

Thanks, I really appreciate your effort and I love JWPlayer.

Merry Christmas.

Alessandro

This question has received the maximum number of answers.