From d8a4bc51a0b02ea0e4c26f40e3ed7560479544b7 Mon Sep 17 00:00:00 2001 From: David Seifried Date: Thu, 9 Jun 2011 14:31:02 -0400 Subject: [PATCH] Added a fix for the youtube bug that is affecting butter --- players/youtube/popcorn.youtube.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 players/youtube/popcorn.youtube.js diff --git a/players/youtube/popcorn.youtube.js b/players/youtube/popcorn.youtube.js old mode 100644 new mode 100755 index 4ef1185..b3fbaa5 --- a/players/youtube/popcorn.youtube.js +++ b/players/youtube/popcorn.youtube.js @@ -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 ) { -- 2.43.0