Skip to content

Commit

Permalink
Fixes QC 5348 - No UI Present on iPhone after pressing 'Done' on a pl…
Browse files Browse the repository at this point in the history
…ayer

with ads during content playback
  • Loading branch information
avivais committed Oct 18, 2012
1 parent c17edae commit 77e0d28
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/KalturaSupport/resources/mw.KAdPlayer.js
Expand Up @@ -320,19 +320,19 @@ mw.KAdPlayer.prototype = {
}
});

// Make sure we remove large play button
$( vid ).bind('playing', function() {
setTimeout( function() {
_this.embedPlayer.hideSpinnerAndPlayBtn();
}, 100);
});

// For iPhone, detect when user clicked "done" and continue to video playback (otherwise the user is stuck and must refresh)
if( _this.embedPlayer.isPersistentNativePlayer() ) {
var exitFullscreenEvent = 'webkitendfullscreen' + this.trackingBindPostfix;
$( vid ).unbind(exitFullscreenEvent).bind(exitFullscreenEvent, function() {
adSlot.playbackDone();
});
} else {
// Make sure we remove large play button
$( vid ).bind('playing', function() {
setTimeout( function() {
_this.embedPlayer.hideSpinnerAndPlayBtn();
}, 100);
});
}

// Update the status bar
Expand Down

0 comments on commit 77e0d28

Please sign in to comment.