From c96536d3e27d53c8004cc17fa9690e2a9010a48b Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Mon, 29 Aug 2011 15:37:16 -0400 Subject: [PATCH] [#693] fixes subtitles in youtube and vimeo --- players/vimeo/popcorn.vimeo.js | 1 + players/youtube/popcorn.youtube.js | 1 + 2 files changed, 2 insertions(+) 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; -- 2.43.0