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
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
- Entities Hierarchy window allows Cyclic nesting and throws an “ArgumentException: Cyclic nesting detected” error when dragging a Prefab onto the same Prefab in the Entities Hierarchy
- EnterPlayModeOptions doesn't take effect if user manually modifies m_EnterPlayModeOptionsEnabled to 0
- VFX Graph Documentation dropdown button does nothing when clicked on the right side
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?