Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in
5.2.1f1
Issue ID
730043
Regression
No
[WebGL] Audio Clip length and sample count are both returned as 0 when using WWW.audioClip or WWW.GetAudioClip in WebGL builds
Steps to reproduce:
1. Open attached project
2. Open and play 'Test' scene
3. Open Console tab, see all three (WWW.audioClip, WWW.GetAudioClip and simple audio clip loaded from resources folder) report correct length and sample count
4. Build and run the scene for WebGL
5. Open the developers console in the browser (For Chrome click F12 and select 'Console' tab)
6. See that WWW.audioClip and WWW.GetAudioClip returns length and sample count as 0
Comments (7)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [CI/CD]Build cache not invalidated when building targets with different defines
- VFX Learning Templates contains an empty folder the HDRP_VFX_Learning_Templates Scene
- Crash on -[NSApplication endModalSession:] when changing code in a Code Editor, saving and clicking on the Unity Window with "Stop Playing and Recompile" selected
- “Install package from git URL” and “Install package by name” tab does not close when resizing undocked Package Manager window and gets pushed outside the window
- "EndLayoutGroup: BeginLayoutGroup must be called first." errors are thrown when creating a Tag with identical name and holding the enter keyboard button
nguyen26092001
Aug 14, 2023 09:17
The problem still exist
GleetchDev
Jul 13, 2023 15:54
The problem still persists
farjad_unity
Nov 28, 2022 09:17
the issue is not at all fixed it's still there in 2021.3.6
DaveA_VR
Jun 09, 2022 20:26
Version 2021.3.0 bug is still there
pepipe
Dec 10, 2018 21:01
I would like to know how this bugs are set to fixed.
AudioSource.clip.length in WebGL builds in the latest versions (2018.x) is always returning 0 when trying in the Editor is returning the right value. I'm guessing that's the way the guy that said that this is fixed tried: Set platform to WebGL and test it directly in Editor....
I also wasted time installing Unity 5.3.7f1, and guess what? The AudioSource.clip.length is still returning 0 even tho I can play the AudioSource just fine.
BBO_Lagoon
Sep 18, 2017 06:05
It seem that the bug is still there in 5.6.1 ...
GilCat
Oct 30, 2015 08:45
In which version is this fixed?