Added a fix for the youtube bug that is affecting butter

This commit is contained in:
David Seifried 2011-06-09 14:31:02 -04:00
Родитель 29402e7d18
Коммит d8a4bc51a0
1 изменённых файлов: 2 добавлений и 2 удалений

4
players/youtube/popcorn.youtube.js Normal file → Executable file
Просмотреть файл

@ -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 ) {