4 ms·
The audio plays for 2 seconds after clicking "Start", then it cuts off and the following pops up on the console: Uncaught (in promise) DOMException: The play
by huhtenberg 1y ago
The audio plays for 2 seconds after clicking "Start", then it cuts off and the following pops up on the console:
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.
Firefox on Windows.
- pierrec 1y agoFirefox on Windows happens to be my main browser and one of the first things I already verified to work, so you'll have to be more specific!
- huhtenberg 1y agoSorry for the late reply. It's Firefox 115.16.
- pierrec 1y agoThanks. Uncommon but I would prefer if it worked :D I'm guessing your version of FF behaves similarly to Webkit as described here: https://github.com/pac-dev/AmbientGarden/blob/master/Web/versioned/js/audio/frozenPatch.js#L19 https://github.com/pac-dev/AmbientGarden/blob/master/Web/ver... If you want to help test this hypothesis, you can go to "about:config", search for "general.useragent.override", and set it to the string "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36", then check if the website works correctly (probably clear the custom setting afterwards). thanks again
- huhtenberg 1y agoI appreciate the follow-up, thanks a bunch. Bingo. Overriding the user agent resolved the issue.