2013-06-12 3 views
5

に例を試していますが、どのブラウザでも動作しません。私は完全にはわかりませんが、私はそれが数日前に働いたと信じています。彼らは の何かをhttp://www.youtube.com/iframe_apiに変更できますか?YouTube iframe_api Googleの例がもう機能しない

インターネット  Explorerが得られます。

Array.prototype.forEach: 'this' is null or undefined

Google Chromeはいくつかを与える:

  1. Unable to post message to http://www.youtube.com . Recipient has origin http://mylocalmachine.com:55495 . www-widgetapi-vfljlXsRD.js:22
  2. 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.
  3. Uncaught TypeError: Array.prototype.forEach called on null or undefined www-widgetapi-vfljlXsRD.js:5
  4. Uncaught TypeError: Object # has no method 'playVideo'
+0

よく私はhttps://developers.google.com/youtube/youtube_player_demoでライブデモを試みましたが、うまくいきません。 不安定です。これは頻繁に起こりますか? – aljj

+2

約18時間前にiframe apiで問題が発生し始めました。 YT.Playerコンストラクタは、持つべきすべてのメソッドを持たないプレーヤオブジェクトを作成しています。たとえば、getPlayerStateはありません。 – bvs

+0

同じ問題があります。 –

答えて

2

私はGoogleが、それは完全に偽であることを何らかの方法でYouTubeのプレーヤーのAPIを変更すると思います。今日まで問題なく使用していましたが、今でも同じ問題があります。最近のStack Overflow投稿、an answer to YouTube Player API: retrieving a reference to an existing playerも、これについて不平を言っています。

+1

また、以前は完璧に機能したコードで同じ問題が発生しました... – urish

2

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.

、それが聞こえます。

関連する問題