Chrome 56 WebGL error

I’m getting the following error in Chrome 56 on one of my WebGL apps.

Uncaught TypeError: WEBAudio.audio.Context.listener.setVelocity is not a function

The same app works without issue in earlier versions of Chrome (as well as in other browsers like Firefox).

This app was made more than a year ago. Has anyone else experienced this problem? Any ideas for a solution? Right now, all I can think of is rebuilding the app in a newer version of Unity, but I’d like to avoid that process if possible.

Thanks!

Well, according to the current webaudio specification the AudioListener class only has two methods “setOrientation() and setPosition()”. It’s possible that in an earlier version it had a seperate “setVelocity” method. Maybe Chrome just sticks too close to the current documentation.

That said you should keep in mind that all those new technologies revolving WebGL, WebAudio, … aren’t really anything near a “final state”. It’s constantly changing / evolving. If you want to ensure that your game runs on most modern browsers you may need to update / rebuild your game with the latest version of Unity on a regular basis. Though, doing so is not a guarantee that it works on all browsers / platforms.

As i said WebGL / WebAudio isn’t yet a fully established API and it’s up to the browser developers to keep the support for those APIs up to date. Deprecation of an old API is also up to them.