Thomas Vanier Thomas Vanier - 1 year ago 140
Javascript Question

Uncaught ReferenceError: ytcfg is not defined

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

Inspecting the iframe, I see a successful call to
, but
fails later. Was the API changed recently? Any player parameter could cause this problem?

<script src="//" type="text/javascript" name="www-embed-player/www-embed-player"></script>
<script src="//" name="player/base"></script>
<script>'st', 35);
"c": "WEB",
"yt_li": 1,
"cver": "1.20161112",
"yt_lt": "cold"
"CSI_SERVICE_NAME": "youtube"

Answer Source

The following bug tracks this issue. Please vote on this bug so that it gets their attention. They have been sitting on it for more than 1 month.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download