зеркало из https://github.com/mozilla/popcorn-js.git
Added a fix for the youtube bug that is affecting butter
This commit is contained in:
Родитель
29402e7d18
Коммит
d8a4bc51a0
|
@ -463,7 +463,7 @@ var onYouTubePlayerReady;
|
|||
},
|
||||
|
||||
startTimeUpdater: function() {
|
||||
var state = this.video.getPlayerState(),
|
||||
var state = typeof this.video.getPlayerState != "function" ? this.readyState : this.video.getPlayerState(),
|
||||
self = this,
|
||||
seeked = 0;
|
||||
|
||||
|
@ -474,7 +474,7 @@ var onYouTubePlayerReady;
|
|||
seeked = 1;
|
||||
} else {
|
||||
this.previousCurrentTime = this.currentTime;
|
||||
this.currentTime = this.video.getCurrentTime();
|
||||
this.currentTime = typeof this.video.getCurrentTime != "function" ? this.currentTime : this.video.getCurrentTime();
|
||||
}
|
||||
|
||||
if ( this.volume !== this.previousVolume ) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче