-
Notifications
You must be signed in to change notification settings - Fork 197
Doesn't work in Chrome 71+ #60
Comments
+1. Same for me on Ubuntu 18.04: Visiting http://reactmusic.surge.sh/ I can see the same warning in the console, empty square on the screen, and no music in Chromium Version 73. But in Firefox it works. |
I am exploring react and decided to take a stab at fixing this in Chrome. I'm sure there are better ways to address this, but I got it working with changes to handlePlayToggle in demo.js: ` handlePlayToggle() {
}` Now I can have some fun with this. |
Well,
I ran into other issues like the Play/Stop button label being reversed, and not knowing react, I came up with what I am sure is the wrong way to do it, but it works for me. There is definitely some weirdness in the demo constructor in setting state as it seemed to be always reinitializing the state of things after the toggle call. and so, I added these tests: I modified handlePlayToggle to handle the new variable for the button: last change was to the button:
This seems to be working reliably in Chrome now and seems to work in Firefox too. But again, I don't know react and just want to use this to play with music. |
If you open the page in Chrome 71 or newer, it displays a blank rectangle with a Stop/Start button. Clicking the button, even multiple times, doesn't do anything.
The DevTools console displays a warning:
The URL linked at the end of the message explains the issue. tl;dr is included in one box:
This is a measure preventing websites from playing potentially unwanted audio, as I understand.
Tested on macOS 10.13.6 (17G4015) but the issue should be present on all operating systems.
The text was updated successfully, but these errors were encountered: