Skip to content

Commit

Permalink
[Player_V2][KAVA] - In mobile device, locking the phone does not caus…
Browse files Browse the repository at this point in the history
…e a pause event (33) (#3942)

* FEC-8576

* pr fix
  • Loading branch information
Dan Ziv authored Nov 26, 2018
1 parent 57e2377 commit b73a6c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/KalturaSupport/resources/mw.kAnalony.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,12 @@
}
}
});
this.embedPlayer.bindHelper( 'userInitiatedPause' , function () {
this.embedPlayer.bindHelper( 'onpause' , function () {
_this.timer.stop();
_this.sendAnalytics(playerEvent.PAUSE);
if ( _this.embedPlayer.isDVR() ) {
_this.dvr = true;
}
});

this.embedPlayer.bindHelper( 'monitorEvent' , function () {
Expand All @@ -187,7 +190,7 @@
_this.dvr = false;
} );

this.embedPlayer.bindHelper( 'seeking onpause', function() {
this.embedPlayer.bindHelper( 'seeking', function() {
_this.previousCurrentTime = _this.embedPlayer.currentTime;
if ( _this.embedPlayer.isDVR() ) {
_this.dvr = true;
Expand Down

0 comments on commit b73a6c1

Please sign in to comment.