From 82e761e599bc3db000ed4cad3f2b395def7933cb Mon Sep 17 00:00:00 2001 From: David Seifried Date: Mon, 14 May 2012 12:30:58 -0400 Subject: [PATCH] [#1060] Made sure we reset the seeking flag after a seek --- players/vimeo/popcorn.vimeo.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/players/vimeo/popcorn.vimeo.js b/players/vimeo/popcorn.vimeo.js index 73055749..270c1929 100644 --- a/players/vimeo/popcorn.vimeo.js +++ b/players/vimeo/popcorn.vimeo.js @@ -50,9 +50,11 @@ vimeo_player_loaded.seek[ vimeoContainer.id ] = function( time ) { if( time.seconds !== currentTime ) { + seeking = true; currentTime = time.seconds; media.dispatchEvent( "seeked" ); media.dispatchEvent( "timeupdate" ); + seeking = false; } }; @@ -129,6 +131,12 @@ vimeoObject.api_play(); }; + Popcorn.player.defineProperty( media, "seeking", { + get: function() { + return seeking; + } + }); + media.pause = function() { if ( !media.paused ) { @@ -148,8 +156,8 @@ } currentTime = seekTime = +val; - seeking = true; + seeking = true; media.dispatchEvent( "seeked" ); media.dispatchEvent( "timeupdate" ); vimeoObject.api_seekTo( currentTime );