Skip to content

Commit

Permalink
Fix for paused state after iOS leaves fullscreen
Browse files Browse the repository at this point in the history
In tests we discovered iOS9 may put the video into paused when clicking
done on the video. Now we can accommodate for this.

JW7-1492
  • Loading branch information
donato committed Oct 1, 2015
1 parent 56557c4 commit 9b5759b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/providers/html5.js
Expand Up @@ -579,6 +579,11 @@ define([
_sendFullscreen(e);
if (utils.isIOS()) {
_videotag.controls = false;
// iOS may pause the video after exiting fullscreen
// when using the "Done" button
if (_videotag.paused) {
_this.setState(states.PAUSED);
}
}
}

Expand Down

0 comments on commit 9b5759b

Please sign in to comment.