5 ms·
Regarding the Safari issue and the need for a AudioContext.resume() call, this is due to Safari suspending the AudioContext on creation, this is probably a good
by cocoggu 6y ago
Regarding the Safari issue and the need for a AudioContext.resume() call, this is due to Safari suspending the AudioContext on creation, this is probably a good behaviour but it should be resumed automatically, as explained in the thread here : https://stackoverflow.com/questions/56768576/safari-audiocontext-suspended-even-with-onclick-creation https://stackoverflow.com/questions/56768576/safari-audiocon...
- wombatmobile 6y agoNot working for me on Safari Version 14.0 (15610.1.28.1.9, 15610) Catalina 10.15.7 (19H2) Working on Chrome Version 86.0.4240.80 (Official Build) (x86_64) same machine
- arcatech 6y agoNot working after the resume() call? Are you getting an error message or just missing data?
- wombatmobile 6y agoI'm clicking on your embedded demo that you introduce with Here's what I came up with: and caption "The local audio visualisation. I cycle through bar graph in light mode, bar graph in dark mode, sine wave in dark mode, then sine wave in light mode." On Chrome, the mute button defaults to the muted state and never responds to a click. Pause/play always works to toggle the animated display with every click. On Safari, the pause button is unresponsive. The mute button toggles the animated display with every click, and changes state between muted and unmuted. When muted, animation is paused. When unmuted, animation is active. When muted and animation paused, a click on the play button does not change the paused animation state, but does result in the triangle symbol displaying smaller during button down, then restore to larger when button up. Sometimes I can get the play button to work (toggle animation on/off) after clicking in the progress bar a number of times and toggling the animation state that way, after which (sometimes) the play button works, but not always. Also, the display of controls is different on Chrome than Safari. Chrome, progress bar is a full width bar underneath the other controls. Safari, progress bar is in line with the other controls, which include -15 and +15 either side of Play. Those skip controls are not present on Chrome.
- arcatech 6y agoAh. I should have made that part a little clearer. That's just a video file of a screen recording showing me cycling through display modes. It sounds like you're describing some cross browser issues playing that mp4 file. Thanks for the feedback though. I'll try to reword that section so it's more clear.
- wombatmobile 6y agoYes! Sorry for the confusion. Thanks!