зеркало из https://github.com/mozilla/popcorn-js.git
[#693] fixes subtitles in youtube and vimeo
This commit is contained in:
Родитель
93d01f3f9a
Коммит
c96536d3e2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче