Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 3b509159bf231bf65e7fcf7e45eff7d8ac25d913 1 parent 79b28a1
@mdale mdale authored
View
6 modules/DolStatistics/mw.DolStatistics.js
@@ -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 )
){
View
2  modules/DolStatistics/tests/DOLStatisticsPlaylist.html
@@ -134,7 +134,7 @@
uiconf_id : '7190901',
cache_st : '2',
flashvars: {
- 'autoPlay' : true,
+ 'autoPlay' : false,
'playlistAPI.autoInsert' : 'true',
'playlistAPI.autoContinue' : 'true',
'playlistAPI.kpl0Name' : 'test 4 item playlist',
View
2  modules/DoubleClick/mw.DoubleClick.js
@@ -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() );
Please sign in to comment.
Something went wrong with that request. Please try again.