VIKAS KOHLI
VIKAS KOHLI

Reputation: 8440

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

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.

Upvotes: 5

Views: 4472

Answers (1)

Related Questions