javascript – YouTube iframe_api Google示例不再有效

前端之家收集整理的这篇文章主要介绍了javascript – YouTube iframe_api Google示例不再有效前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

参见英文答案 > YouTube iframe player API – OnStateChange not firing                                    1个
我在Getting Started尝试这个例子,它在任何浏览器中都不起作用.我不完全确定,但我相信它在几天前就已经奏效了.他们有可能改变
什么在http://www.youtube.com/iframe_api

Internet Explorer提供:

Array.prototype.forEach: ‘this’ is null or undefined

Google Chrome给出了几个:

  1. Unable to post message to 07004. Recipient has origin 07005. www-widgetapi-vfljlXsRD.js:22
  2. Blocked a frame with origin “07004” from accessing a frame with origin “07005”. Protocols,domains,and ports must match.
  3. Uncaught TypeError: Array.prototype.forEach called on null or undefined www-widgetapi-vfljlXsRD.js:5
  4. Uncaught TypeError: Object # has no method ‘playVideo’
最佳答案
看起来YouTube已经意识到了这个问题.从https://code.google.com/p/gdata-issues/issues/detail?id=4706开始:

The engineering team has identified an issue that is preventing the
iframe API from functioning at the moment. They have traced the root
cause to a disruption caused by an ongoing server-side push,and once
that push is fully complete,the JavaScript errors should completely
subside. It will likely be several more hours before the push is
complete,unfortunately.

This is not expected to be a regular occurrence,and we apologize for
the inconvenience caused by this outage.

根据他们的信息,听起来它应该尽快恢复运作.

猜你在找的HTML相关文章