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: Firefox fullscreen api (fixes #239) #259

Merged
merged 6 commits into from
Sep 2, 2024
Merged

Fix: Firefox fullscreen api (fixes #239) #259

merged 6 commits into from
Sep 2, 2024

Conversation

oliverfoster
Copy link
Member

fiex #239

Fix

  • Firefox uses native fullscreen api where available

@oliverfoster oliverfoster self-assigned this Apr 3, 2023
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with Firefox, Chrome and Edge, all working as expected.

@swashbuck
Copy link
Contributor

I'm getting a console error when in fullscreen and pressing the ESC key to exit fullscreen.

Uncaught (in promise) TypeError: Not in fullscreen mode
    cancelFullScreen mediaView.js:103
    exitFullScreen mediaelement-and-player.js:4674
    fullscreenChanged mediaelement-and-player.js:4346

Environment

  • Firefox 112.0.1
  • Mac 11.7.6

Branches / versions

  • Framework 5.28.9
  • Media issue/239

@oliverfoster
Copy link
Member Author

Cool. Will check on mac. Thanks.

@StuartNicholls
Copy link

@oliverfoster on Mac I'm not seeing it go in to Full screen, the vid increases to the browser size but the browser remains at the size before pressing the button. I also get the same console error

Uncaught (in promise) TypeError: Not in fullscreen mode

@oliverfoster
Copy link
Member Author

Cool. Same as Brad's diagnosis. Ta. Which version of Safari? (Just in case).

@StuartNicholls
Copy link

Cool. Same as Brad's diagnosis. Ta. Which version of Safari? (Just in case).

Oh sorry, I always run the latest versions. Firefox 113.0.1

@oliverfoster
Copy link
Member Author

  • Firefox, obvs, I meant 🔥🦊

@swashbuck swashbuck changed the title Fix: Firefox fullscren api (fixes #239) Fix: Firefox fullscreen api (fixes #239) Aug 26, 2024
@swashbuck
Copy link
Contributor

swashbuck commented Aug 27, 2024

Commit adc38ab works for me. I no longer see TypeError: Not in fullscreen mode in Firefox (Mac) when exiting fullscreen mode. Needs some testing, though.

Copy link
Contributor

@joe-allen-89 joe-allen-89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 tested with multiple browsers all working as expected, no errors.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Contributor

@kirsty-hames kirsty-hames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected testing on Mac FF

@kirsty-hames kirsty-hames merged commit 84d50dc into master Sep 2, 2024
@kirsty-hames kirsty-hames deleted the issue/239 branch September 2, 2024 12:27
github-actions bot pushed a commit that referenced this pull request Sep 2, 2024
## [6.7.1](v6.7.0...v6.7.1) (2024-09-02)

### Fix

* Firefox fullscreen api (fixes #239) (#259) ([84d50dc](84d50dc)), closes [#239](#239) [#259](#259) [#239](#239) [#239](#239)
Copy link

github-actions bot commented Sep 2, 2024

🎉 This PR is included in version 6.7.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants