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
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
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?