]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#693] fixes subtitles in youtube and vimeo
authorScottDowne <sdowne@learn.senecac.on.ca>
Mon, 29 Aug 2011 19:37:16 +0000 (15:37 -0400)
committerScottDowne <sdowne@learn.senecac.on.ca>
Mon, 29 Aug 2011 19:37:16 +0000 (15:37 -0400)
players/vimeo/popcorn.vimeo.js
players/youtube/popcorn.youtube.js

index f129f0f0fcfd8776a6a608fa8c24d8f6b711341c..c995f47c78c2992d2db0c60567bfda3e6c10c4a7 100644 (file)
       this.initialTime = 0;
       this.played = 0;
       this.readyState = 0;
+      this.parentNode = this._target.parentNode;
 
       this.previousCurrentTime = this.currentTime;
       this.previousVolume = this.volume;
index 4e7737bcc73acaa96665adc257cdd9a96e448f7a..d98b521aa76995792d2e15bd5d59443561e7a7f5 100755 (executable)
@@ -198,6 +198,7 @@ var onYouTubePlayerReady;
     this._container.style.height = this._target.style.height = options.height || this._target.style.height || "350px";
     this._container.style.width  = this._target.style.width  = options.width || this._target.style.width  || "460px";
     this._target.appendChild( this._container );
+    this.parentNode = this._target.parentNode;
 
     this.offsetHeight = +this._target.offsetHeight;
     this.offsetWidth = +this._target.offsetWidth;