jeffreylanters / react-unity-webgl

React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React.
https://react-unity-webgl.dev
Apache License 2.0
1.73k stars 163 forks source link

AudioContext #462

Closed sampuls1 closed 1 year ago

sampuls1 commented 1 year ago

Please avoid duplicates

Language and Compiler

Babel and WebPack JavaScript

What environment are you using?

Local Development Server

When does your problem occur?

When the Context is created

What does your problem relate to?

The problem seems Browser related

React-Unity-WebGL Version

9.2.1

React Version

18.2.0

Unity Version

2021.3.11f1

What happened?

Is anyone facing this issue? Unity 2021.3.11f1, with v 9.2.1

The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.

Reproducible test case

No response

Would you be interested in contributing a fix?

sampuls1 commented 1 year ago

I used "Disable unity audio" in project settings and that resolved the above issue

jeffreylanters commented 1 year ago

Perfect! Thanks for updating me.