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

Firefox autoplay policy prevents sound from keyboard input #180

Open
jessegreenberg opened this issue May 16, 2023 · 4 comments
Open

Firefox autoplay policy prevents sound from keyboard input #180

jessegreenberg opened this issue May 16, 2023 · 4 comments

Comments

@jessegreenberg
Copy link
Contributor

From phetsims/quadrilateral#437, it was discovered that Firefox does not start sound from keyboard events. You have to activate a button with a click event (or another activating event) first.

Maybe some iteration this can be investigated with extra common code work. As suggested in phetsims/quadrilateral#437 (comment), that might include a bug report to Mozilla.

This is related to #179 (same problem, different input/browser).

Another long term solution could be to add a "Start" button to all PhET sims that initializes media.

@jessegreenberg jessegreenberg changed the title Firefox autoplay policy prevents from keyboard input Firefox autoplay policy prevents sound from keyboard input May 16, 2023
@zepumph
Copy link
Member

zepumph commented Jun 15, 2023

Ideas from dev meeting:

  • This may only be a problem with single screen simulations, since the home screen likely will trigger a "click" event.
  • "Enable Sound" button on the nav bar (only show when detecting the issue on firefox + sound sim).
  • Handle this with documentation/teacher tips/FAQ.
  • Where is the bug report in Firefox?

@jessegreenberg
Copy link
Contributor Author

jessegreenberg commented Jun 15, 2023

Lets write up a bug report to Mozilla, I will do that. It probably is not wise to write our own code to find a workaround for this (and there likely isn't one). The design team has not indiciated that we need some design indication or solution for this.

@jessegreenberg jessegreenberg self-assigned this Jun 15, 2023
@jessegreenberg
Copy link
Contributor Author

I did some more testing before submitting a bug report. I can no longer reproduce the problem in Windows 10 Firefox 114.0.2 (64 bit) for https://phet-dev.colorado.edu/html/geometric-optics/1.3.0-dev.1/phet/geometric-optics_all_phet.html?screens=1.

But @chrisklus helped test on MacOS Firefox 114.0.2 (64 bit) and observed that the problem is still there. So I will still write up a report to them about it.

@jessegreenberg
Copy link
Contributor Author

A report was submitted through bugzilla, we will see how they respond. Removing my assignment until then.

@jessegreenberg jessegreenberg removed their assignment Jun 28, 2023
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

No branches or pull requests

2 participants