Javascript Android原生浏览器2.3.7:Youtube iframe API;onReady“;未触发事件

Javascript Android原生浏览器2.3.7:Youtube iframe API;onReady“;未触发事件,javascript,android,backbone.js,youtube-api,android-2.3-gingerbread,Javascript,Android,Backbone.js,Youtube Api,Android 2.3 Gingerbread,我正在Win/MacChrome&firefox、iPad、iPhone、安卓4.3、安卓4.1.2和安卓2.3.7上测试我的主干应用程序。Youtube iFrame API在使用本机浏览器的Android 2.3.7以外的所有平台上都能正常工作。我跟踪到了YT.Player()返回的对象,该对象从未触发onReady事件或任何其他事件 onyoutubeiframeapiredy在所有测试中都会被调用,并且正在实例化播放器,但是有什么东西阻止了“onReady”事件的触发 我看到其他一些帖子

我正在Win/MacChrome&firefox、iPad、iPhone、安卓4.3、安卓4.1.2和安卓2.3.7上测试我的主干应用程序。Youtube iFrame API在使用本机浏览器的Android 2.3.7以外的所有平台上都能正常工作。我跟踪到了YT.Player()返回的对象,该对象从未触发onReady事件或任何其他事件

onyoutubeiframeapiredy在所有测试中都会被调用,并且正在实例化播放器,但是有什么东西阻止了“onReady”事件的触发

我看到其他一些帖子在其他浏览器中引用了类似的问题,但一般的反应是这是一个“老错误”,应该已经解决了;然而,我在一个普通的HTML页面上尝试了一个简单的YT.Player实现,它在2.3.7本机浏览器中工作,因此它似乎不是Youtube、浏览器或服务器的问题。不确定这里会发生什么,因为代码在所有浏览器中都是相同的,并且正在处理其他所有事情。任何帮助都将不胜感激

代码:

_injectScript: function(){
  var tag = document.createElement('script');
  tag.src = "https://www.youtube.com/iframe_api";
  var firstScriptTag = document.getElementsByTagName('script')[0];
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
},


render: function(runTimeSettings) {
  var t=this;
  Player.prototype.render.call(this, runTimeSettings);
  window.onYouTubeIframeAPIReady = function() {
    var player = new YT.Player('PlayerReal', {
      events: {
        'onStateChange': function(e) {
          t.dispatchEvent(e);
        },
        'onReady': function(e) {
          t.player = player;
          t.domReady.resolve();
        },
        'onError':function(e) {
          // nothing yet...
        }
      }
    });
  };

  this._injectScript();
  return this.el;
}