Skip to content

Commit

Permalink
fix(FEC-10514): iOS14 - wrong UI on inBrowserFullscreen from PiP (#492)
Browse files Browse the repository at this point in the history
exit from PiP before applying in-browser fill screen

Solves FEC-10514
  • Loading branch information
yairans authored Oct 19, 2020
1 parent ddf3a87 commit 6d9b473
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fullscreen/fullscreen-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ class FullscreenController {
* @returns {void}
*/
_enterInBrowserFullscreen(fullScreenElement: HTMLElement): void {
if (this._player.isInPictureInPicture()) {
this._player.exitPictureInPicture();
}
// add class for fullscreen
Utils.Dom.addClassName(fullScreenElement, IN_BROWSER_FULLSCREEN);
this._isInBrowserFullscreen = true;
Expand Down

0 comments on commit 6d9b473

Please sign in to comment.