Skip to content

Commit

Permalink
[#1428] Null wrapper double interval issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottDowne committed Feb 1, 2013
1 parent 4338b13 commit faa4232
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions wrappers/null/popcorn.HTMLNullVideoElement.js
Expand Up @@ -244,14 +244,18 @@
addPlayerReadyCallback( function() { self.play(); } );
return;
}
player.play();
onPlay();
if ( impl.paused ) {
player.play();
onPlay();
}
};

function onPause() {
impl.paused = true;
clearInterval( timeUpdateInterval );
self.dispatchEvent( "pause" );
if ( !impl.paused ) {
impl.paused = true;
clearInterval( timeUpdateInterval );
self.dispatchEvent( "pause" );
}
}

self.pause = function() {
Expand Down

0 comments on commit faa4232

Please sign in to comment.