Uncaught ReferenceError: ytcfg is not defined even though I won't use that as I am using yt player
Asked Answered
S

1

5

I have been using the YouTube IFrame Player API without problem for months and started to see this exception recently when the player loads:

Uncaught ReferenceError: ytcfg is not defined when I see the console.

Also by this error my app crashes.

This question is already asked in Uncaught ReferenceError: ytcfg is not defined (also __ytRIL is not defined) - but there is not mention with that issue the site/app crashes.

The worth noting about that the same code worked properly on Android OS(app developed using cordova) but on the Other OS the app crashes.

How can I prevent this from crashing my app? Thanks in Advance.

Shoshonean answered 17/11, 2016 at 17:10 Comment(2)
What have you tried? Have you switched according to this answer?Knucklehead
They are saying youtube API error it is. So I am unable to configure out what the problem was. Atleast app should not be crash by that problemShoshonean
R
7

This is a Google API bug. You can see the bug confirmed here:

https://code.google.com/p/gdata-issues/issues/detail?can=2&start=0&num=100&q=&colspec=API%20ID%20Type%20Status%20Priority%20Stars%20Summary&groupby=&sort=&id=8668

Roshelle answered 17/11, 2016 at 22:28 Comment(2)
Please go and vote for the bug to get fixed. they are sitting on it for more than 1 month.Roshelle
I think Google API bug fixes as youtube video is now playingShoshonean

© 2022 - 2024 — McMap. All rights reserved.