Skip to content

Commit

Permalink
fix(FEC-10514): iOS14 - wrong UI on inBrowserFullscreen from PiP
Browse files Browse the repository at this point in the history
  • Loading branch information
yairans committed Oct 18, 2020
1 parent 4d020db commit 6cdfa70
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 @@ -176,6 +176,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 6cdfa70

Please sign in to comment.