Excalibur
Excalibur copied to clipboard
Excalibur errantly displays audio warning regardless of setup
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 :(
This issue hasn't had any recent activity lately and is being marked as stale automatically.
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.
This issue hasn't had any recent activity lately and is being marked as stale automatically.