Audio stopped playing in latest Chrome update

It’s mp3, one of the supported file types on Apple’s documentation…
(also for Chrome on iOS)

Sry, i can’t test this. I don’t have a iPhone.

Sorry but https://threejs.org/examples/webaudio_visualizer.html doesn’t work for me on Chromium Version 66.0.3359.139 (Build de développement) (64 bits) (on linux) while the one from r92 is playing fine (both hosted server and local server). EDIT: it’s working now, I don’t now why. Edit: well, it’s not playing if I try to load the url directly, but it plays when I go through the Examples page of threejs.org.

This has already been fixed in dev, see https://github.com/mrdoob/three.js/pull/14020

Ah, OK, I thought the https://threejs.org/examples/webaudio_visualizer.html was the corrected one. I guess it will be in r93.

1 Like

Sorry to come back to this. Maybe an entirely new issue, but no audio examples play in iOS 11.2 Safari either. Know any issue in the forum relating to that? Thanks

Ok, this article made it for me: https://hackernoon.com/unlocking-web-audio-the-smarter-way-8858218c0e09

The function at teh end is all you need.

Basically, it’s even a different approach with iOS Safari altogether. While in desktop Chrome, you need any event outside the scope of the player function to make it work, Safari needs explicit user input to do so, after audio loading. The function attaches a touche vent to the whole document, and once the screen is pressed once, you can unlock the power of that file…even mp3 that is.

@Mugen87, do you think it is worthwhile do add that fix to the examples as well? It should be as simple as grabbing that function and passing it the *THREE.Audio_ instance*.contextas argument.

For the examples there is already a fix in place that ensures the audio context is created after the user interaction.

Also see: https://bugs.chromium.org/p/chromium/issues/detail?id=840866#c103