diff --git a/players/vimeo/popcorn.vimeo.js b/players/vimeo/popcorn.vimeo.js index f129f0f0..c995f47c 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 4e7737bc..d98b521a 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;