Skip to content

Commit

Permalink
Merge pull request #1037 from kaltura/FEC-2089-iPadFix
Browse files Browse the repository at this point in the history
#FEC-2089 #comment fix regression (vid.load) + ipad with iOS8 dfp issue ...
  • Loading branch information
MichalRadwantzor committed Oct 2, 2014
2 parents a10be0b + 03dc375 commit 89b8370
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions modules/DoubleClick/resources/mw.DoubleClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@
return;
}
_this.embedPlayer.unbindHelper( 'playing' + bindPostFix );
_this.embedPlayer.stopEventPropagation();
_this.embedPlayer.getPlayerElement().pause();
_this.embedPlayer.stopMonitor();
if( !mw.isIOS8() ) {
_this.embedPlayer.stopEventPropagation();
_this.embedPlayer.getPlayerElement().pause();
_this.embedPlayer.stopMonitor();
}
});
}
},
Expand Down
7 changes: 5 additions & 2 deletions modules/EmbedPlayer/resources/mw.EmbedPlayerNative.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,9 +1046,12 @@ mw.EmbedPlayerNative = {
// issue a play request
if( !_this.playing ) {
if( mw.isIOS8() ) {
vid.load();
setTimeout( function() {
vid.play();
}, 0);
} else {
vid.play();
}
vid.play();
}
// re-start the monitor:
_this.monitor();
Expand Down

0 comments on commit 89b8370

Please sign in to comment.