Skip to content

Commit

Permalink
fix(FEC-8650): video continues in PiP window when full screen opened (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
odedhutzler committed Nov 11, 2018
1 parent b12c0fa commit 695f672
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/fullscreen/fullscreen.js
Expand Up @@ -146,6 +146,9 @@ class FullscreenControl extends BaseComponent {
* @memberof FullscreenControl
*/
requestFullscreen(element: HTMLElement): boolean {
if (this.player.isInPictureInPicture()) {
this.player.exitPictureInPicture();
}
if (typeof element.requestFullscreen === 'function') {
element.requestFullscreen();
return true;
Expand Down

0 comments on commit 695f672

Please sign in to comment.