Permalink
Browse files

also check for doPause, fixed playInterface update, don't autoplay

  • Loading branch information...
1 parent 79b28a1 commit 3b509159bf231bf65e7fcf7e45eff7d8ac25d913 Michael Dale committed Apr 29, 2012
@@ -247,8 +247,10 @@ mw.DolStatistics.prototype = {
return ;
}
_this.duringChangeMediaFlag = false;
- // if paused event and on the last or first second skip.
- if( eventName == 'playerPaused' &&
+
+ // If paused event and on the last or first second skip.
+ if( ( eventName == 'playerPaused' || eventName == 'doPause' )
+ &&
( Math.round( embedPlayer.currentTime ) == 0 ||
embedPlayer.getDuration() - embedPlayer.currentTime < 1 )
){
@@ -134,7 +134,7 @@ <h3> DOL statistics playlist test </h3>
uiconf_id : '7190901',
cache_st : '2',
flashvars: {
- 'autoPlay' : true,
+ 'autoPlay' : false,
'playlistAPI.autoInsert' : 'true',
'playlistAPI.autoContinue' : 'true',
'playlistAPI.kpl0Name' : 'test 4 item playlist',
@@ -348,7 +348,7 @@ mw.DoubleClick.prototype = {
// hide spinner:
_this.embedPlayer.hidePlayerSpinner();
// make sure the player is in play state:
- _this.playInterfaceUpdate();
+ _this.embedPlayer.playInterfaceUpdate();
// restore player position:
_this.restorePlayerOnScreen( _this.getAdContainer() );

0 comments on commit 3b50915

Please sign in to comment.