Uncaught ReferenceError: ytcfg is not defined (also __ytRIL is not defined)

前端 未结 4 1583
慢半拍i
慢半拍i 2020-12-12 15:12

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: y

相关标签:
4条回答
  • 2020-12-12 15:47

    It looks like the bug is on youtube's side. You can see the same JS error here: https://www.youtube.com/embed/U-xetxYwyak

    0 讨论(0)
  • 2020-12-12 15:52

    This started happening even on youtube.com when you click the "Share" button under any video and then the "Embed" tab to copy paste the embedding html code. Definitely their fault.

    0 讨论(0)
  • 2020-12-12 15:55

    This is a Google bug. It also happens on Youtube's developer page. https://developers.google.com/youtube/youtube_subscribe_button

    The following bugs tracks this issue.

    https://code.google.com/p/gdata-issues/issues/detail?id=8569 (Still active -as of Jan 5h 2017)

    Please up vote on this bug using the links below so that it gets their attention. They have been sitting on it since Sep 9, 2016!!.

    0 讨论(0)
  • 2020-12-12 15:58

    I had the same issue. Temporary fix was using objects instead of iframes. It worked for me.

    0 讨论(0)
提交回复
热议问题