2011-08-26 1 views
2

IE 8에서 내 YouTube 플레이어를 확인하고 'onReady', 'onStateChange'이벤트가 발생하지 않는 것을 확인했습니다. initPlayer 메소드가 호출되고 비디오가 재생되지만 이벤트는 실행되지 않습니다.Youtube iframe api : 'onReady', 'onStateChange'가 IE 8에서 실행되지 않음

Safari, Firefox Mac, FireFox Win에서 예상대로 작동합니다.

여기에 뭔가가 있습니까? 여기

는 관련 코드 :

MyPlayer.prototype = { 

/* [...] */ 


initPlayer: function() { 

    var that = this; 
    alert("initPlayer: (IE 8 gets this far)"); 

    this.player = new YT.Player(this.cfg.divTagId, { 
     height: this.cfg.height, 
     width: this.cfg.width, 
     videoId: this.cfg.videoId, 
     origin: location.host, 
     playerVars: { 
      controls: this.cfg.controls, 
      wmode: 'opaque', 
      fs: 0 
     }, 
     events: { 
     'onReady': function (event) {alert("onReady")}, 
     'onStateChange': function (event) {alert("onChange")} 
     } 
    }); 

}

/* [...] *이 유튜브 API에있는 오래 된 버그이었다/

}

답변

0

암호. 이 시점에서 모두 작동해야합니다.