Excalibur icon indicating copy to clipboard operation
Excalibur copied to clipboard

Excalibur errantly displays audio warning regardless of setup

Open eonarheim opened this issue 2 years ago • 3 comments

Excalibur will display this warning, even if the audio does work. We should look into this fix this so it only warns if there will be an issue.

[Warn] :  – "Excalibur was unable to unlock the audio context, audio probably will not play in this browser."

Steps to Reproduce

All Excalibur games with the play button

Expected Result

No warning should be shown if using the play button on a modern browser

Actual Result

Warning shown

Environment

  • browsers and versions: Latest Chrome/FF
  • operating system: Windows
  • Excalibur versions: latest main
  • (anything else that may be relevant)

Current Workaround

None, ignore the warning :(

eonarheim avatar Mar 09 '23 19:03 eonarheim

This issue hasn't had any recent activity lately and is being marked as stale automatically.

github-actions[bot] avatar May 09 '23 00:05 github-actions[bot]

This is going to take some refactoring, the core issue is Excalibur starts setting up context types after asset loads but before the context has been unlocked by the user. This causes some warnings, the problem is this is difficult to workaround in the current design and will need some thought before implementing.

eonarheim avatar Jul 18 '23 13:07 eonarheim

This issue hasn't had any recent activity lately and is being marked as stale automatically.

github-actions[bot] avatar Sep 18 '23 00:09 github-actions[bot]