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

WebGL

-

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)

  1. nguyen26092001

    Aug 14, 2023 09:17

    The problem still exist

  2. GleetchDev

    Jul 13, 2023 15:54

    The problem still persists

  3. farjad_unity

    Nov 28, 2022 09:17

    the issue is not at all fixed it's still there in 2021.3.6

  4. DaveA_VR

    Jun 09, 2022 20:26

    Version 2021.3.0 bug is still there

  5. 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.

  6. BBO_Lagoon

    Sep 18, 2017 06:05

    It seem that the bug is still there in 5.6.1 ...

  7. GilCat

    Oct 30, 2015 08:45

    In which version is this fixed?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.