From bd326e1ec10c34da4792524923d315dd8530bffe Mon Sep 17 00:00:00 2001 From: stevenaw Date: Wed, 16 Mar 2011 06:11:55 -0400 Subject: [PATCH] [#280] Things work better now. FF4 still broken by Vimeo's player --- players/vimeo/popcorn.vimeo.js | 4 ++-- players/vimeo/popcorn.vimeo.unit.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/players/vimeo/popcorn.vimeo.js b/players/vimeo/popcorn.vimeo.js index e345001..e13b1ff 100644 --- a/players/vimeo/popcorn.vimeo.js +++ b/players/vimeo/popcorn.vimeo.js @@ -397,7 +397,6 @@ // Fire events for seeking and time change this.evtHolder.dispatchEvent( "seeked" ); - this.evtHolder.dispatchEvent( "timeupdate" ); }, // Play the video play: function() { @@ -452,7 +451,8 @@ var playerEvt, that = this; - evt = evt.toLowerCase(); + // In case event object is passed in + evt = evt.type || evt.toLowerCase(); // If it's an HTML media event supported by player, map if ( evt === "seeked" ) { diff --git a/players/vimeo/popcorn.vimeo.unit.js b/players/vimeo/popcorn.vimeo.unit.js index f5c706e..235bee2 100644 --- a/players/vimeo/popcorn.vimeo.unit.js +++ b/players/vimeo/popcorn.vimeo.unit.js @@ -19,7 +19,7 @@ test("Popcorn Vimeo Plugin", function () { } } - var popped = Popcorn.vimeo( "player_1", "http://vimeo.com/11127501" ), + var popped = Popcorn( Popcorn.vimeo( "player_1", "http://vimeo.com/11127501" ) ), expects = 23, playCount = 0, pauseCount = 0, -- 2.43.0