Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Safari picture-in-picture triggers fullscreenchange #4437

Merged
merged 1 commit into from
Jun 28, 2017

Conversation

mister-ben
Copy link
Contributor

@mister-ben mister-ben commented Jun 22, 2017

Description

When picture-in-picture mode is entered on Safari, webkitbeginfullscreen is triggered which results in a proxied fullscreenchange event and adding the fullscreen class to the player. That causes the tech element to collapse to zero height so that the "this video is playing in picture in picture" placeholder is not visible.

Specific Changes proposed

On webkitbeginfullscreen check whether the presentation mode is picture-in-picture before proxying a fullscreenchange event.

Requirements Checklist

  • Feature implemented / Bug fixed
  • Change has been verified in an actual browser (Chome, Firefox, IE)
  • Reviewed by Two Core Contributors

@gkatsev
Copy link
Member

gkatsev commented Jun 25, 2017

I guess we'll want to also fix this in 5.x.

@gkatsev gkatsev merged commit b636663 into videojs:master Jun 28, 2017
gkatsev pushed a commit that referenced this pull request Jul 4, 2017
When picture-in-picture mode is entered on Safari, `webkitbeginfullscreen` is triggered which results in a proxied `fullscreenchange` event and adding the fullscreen class to the player. That causes the tech element to collapse to zero height so that the "this video is playing in picture in picture" placeholder is not visible.

As with #4437 for v6, on `webkitbeginfullscreen` check whether the presentation mode is picture-in-picture' before proxying a `fullscreenchange` event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants