Permalink
Browse files

use isPersistentNativePlayer instead of isIPhone

  • Loading branch information...
1 parent 65a4937 commit 81c81256d2dc55781b2db3a741f3b77c1886b39f @ranyefet ranyefet committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/KalturaSupport/resources/mw.KAdPlayer.js
@@ -328,7 +328,7 @@ mw.KAdPlayer.prototype = {
});
// For iPhone, detect when user clicked "done" and continue to video playback (otherwise the user is stuck and must refresh)
- if( mw.isIphone() ) {
+ if( _this.embedPlayer.isPersistentNativePlayer() ) {
var exitFullscreenEvent = 'webkitendfullscreen' + this.trackingBindPostfix;
@mdale

mdale Oct 11, 2012

Was this tested on the iPhone? ... I would say check for useNativePlayerControls() would be more of the check you wanted to do no? ... i.e if using native controls when you exit fullscreen end the ad?

( assuming you don't want to do the playScreen implementation we discussed earlier? )

$( vid ).unbind(exitFullscreenEvent).bind(exitFullscreenEvent, function() {
adSlot.playbackDone();

0 comments on commit 81c8125

Please sign in to comment.