I have been using the YouTube IFrame API without problems for several months and started seeing this exception recently when a player loads:
Uncaught ReferenceError: ytcfg is not detected when I see the console.
Also with this error the application crashes.
This question has already been asked in Uncaught ReferenceError: ytcfg is not defined (also __ytRIL is not defined) - but the site / application of the crash is not mentioned about this problem.
It is worth noting that the same code worked correctly on the Android OS (an application developed using cordova), but on another OS with which the application works.
How can I prevent this from crashing my application? Thanks at Advance.
source
share