Unity Issue Tracker - Play doesn't work with an audio random container in WebGL with a clip that has preload audio data turned off
Fixed
UUM-74854
Play doesn't work with an audio random container in WebGL with a clip that has preload audio data turned off
Unity: Platform Audio
WebGL
Fixed
6.0.X
Won't Fix
2022.3.X
2022.3.30f1 onwards
2021.3.X
2021.3.39f1 onwards
Partial fix. The regression that caused the ARC not to play at all without Preload Audio Data has been fixed, but the issue of it only playing the second time Play is requested is still to be investigated and fixed.
ARC is only supported in 2023 and later versions.
ARC is only supported in 2023 and later versions.
Steps to reproduce:
Download and open the attached project 'ARCWebGLPlayBug.zip'.
Build and run the project for WebGL.
Press '1' on the keyboard several times to attempt to play some audio.
Actual results: Audio plays.
Expected results: No audio plays.
Reproducible with versions:
6000.0.0f1
Not reproducible with versions:
2023.2.0f1
Can’t test with versions:
2022.3.X
2021.3.X
Tested on (OS): MacOS (M1) 14.5
Notes:
In 2023.2.0f1, the clip plays the second time you try to play it, so there has always been a bug. But this is a regression because now it doesn't play at all.
This only occurs when preload audio data is turned off for the clip.
Perssing '2' and then pressing '1' actually plays audio because the clip is loaded when it plays through an audio source directly as a clip.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?