<分区>
我正在尝试 Getting Started 中的示例它不适用于任何浏览器。我不完全确定,但我相信它在几天前就起作用了。有没有可能他们改变了 http://www.youtube.com/iframe_api 里的东西?
Internet Explorer 提供:
Array.prototype.forEach: 'this' is null or undefined
Google Chrome给出几个:
- Unable to post message to http://www.youtube.com. Recipient has origin http://mylocalmachine.com:55495. www-widgetapi-vfljlXsRD.js:22
- Blocked a frame with origin "http://www.youtube.com" from accessing a frame with origin "http://mylocalmachine.com:55495". Protocols, domains, and ports must match.
- Uncaught TypeError: Array.prototype.forEach called on null or undefined www-widgetapi-vfljlXsRD.js:5
- Uncaught TypeError: Object # has no method 'playVideo'