From: ScottDowne Date: Mon, 29 Aug 2011 19:37:16 +0000 (-0400) Subject: [#693] fixes subtitles in youtube and vimeo X-Git-Tag: v0.8^2~2^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c96536d3e27d53c8004cc17fa9690e2a9010a48b;p=popcorn-js.git [#693] fixes subtitles in youtube and vimeo --- diff --git a/players/vimeo/popcorn.vimeo.js b/players/vimeo/popcorn.vimeo.js index f129f0f..c995f47 100644 --- a/players/vimeo/popcorn.vimeo.js +++ b/players/vimeo/popcorn.vimeo.js @@ -296,6 +296,7 @@ this.initialTime = 0; this.played = 0; this.readyState = 0; + this.parentNode = this._target.parentNode; this.previousCurrentTime = this.currentTime; this.previousVolume = this.volume; diff --git a/players/youtube/popcorn.youtube.js b/players/youtube/popcorn.youtube.js index 4e7737b..d98b521 100755 --- a/players/youtube/popcorn.youtube.js +++ b/players/youtube/popcorn.youtube.js @@ -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;