Is there a problem with the <audio> element? I tested it on Chrome and Firefox, and the inspector said “Your browser doesn’t support the audio element” on both browsers.
I have tryied the website both on Chrome/Safari and on Windows and Mac OS - On mobile i ve tested it on iPhone 7 and iPhone 5 and it is working with both . I have also found a cool website that shows all the html 5 features supported by the current browser:
In any case I will try to fix the issue or at least show a warning for the browsers that do not support the feature. Thank you very much for the feedback Also it will be helpful to know the version of the browser to replicate the issue
Oh yeah, for sure. The <audio> element has been supported by Firefox and Chrome for about a decade now. That’s why I’m surprised to see this. Here’s a screenshot of Firefox, in case it helps with debuggin. Chrome shows the same.
Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted. earth-music-visualizer.web.app
Uncaught (in promise) DOMException: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
In Chrome I don’t get any messages but the Audio controls are greyed out.
Yo looee, so the steps for the correct functioning of the player are
Clicking on the canvas - (I believe that’s what “the site is activated by the user” means)
Drag and drop a song (Or click on the screen for uploading on mobile)
The order doesn’t matter. Today I’m testing on Firefox. If the buttons are gray it’s because it is not loading the track, to address this issue i have to research some audio compatibility differences between browsers. I have only tried with mp3 and wav. Thanks for the feedback
That is not part of the disclaimer, and it kind of gets confused in it
The reason is that only when you first click on the document the script creates the audio context, so if you still see the disclaimer it is because the audio context has not been created
Agree, I’ve arleady thought about it, but being a (veery unproductive) music producer, it has to be miiine
I think I’ll just go for some royality free stuff for now :’)