Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Audio don't plays in WebGL 2020.2

Discussion in '2020.2 Beta' started by heyMadsz, Aug 22, 2020.

  1. heyMadsz

    heyMadsz

    Joined:
    May 15, 2019
    Posts:
    3
    I saw on some other topic that compression was not working and crashed the game. Well, I disabled compression and got a new error, it doesn't stop me from playing but it mutes the game. The game sound does not play at any time.

    Browser: Google Chrome and Microsoft Edge

    ERROR:
    "asm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'."
     
  2. Rennan24

    Rennan24

    Joined:
    Jul 13, 2014
    Posts:
    38
    Yeah I've ran into this issue right now, I might just have to downgrade to a previous version because I couldn't find any solutions. Mainly just how to fix the compression issues you talked about at the top of the post. :confused:
     
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,071
  4. BenjaminBachman

    BenjaminBachman

    Joined:
    Feb 1, 2017
    Posts:
    29
    It says fixed in 2021.1. Is there any roadmap on when this will be in 2020.2? Or can 2021.1 be downloaded somewhere?
    I would really like to use Ambient Occlusion with URP but this feature is only compatible with 2020.2+. However having no sound in WebGL is a show stopper at the moment.
     
  5. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,071
    It is going to be backported to 2020.2 before its release.
     
  6. Erveon

    Erveon

    Joined:
    Sep 15, 2019
    Posts:
    13
    Did this not end up happening?
    I'm in the exact same scenario as @BenjaminBachman.

    Just tried the 2020.2 release and there's no sound on WebGL
    I sincerely hope there's a fix for this soon because that's essentially an entire platform unusable in the latest version.
     
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,135
    Hi @Erveon,

    This will be fixed with the next release in 2020.2.1f.
     
    shuba and Erveon like this.
  8. FoxWareFX

    FoxWareFX

    Joined:
    Dec 2, 2020
    Posts:
    6
    I tried in 2020.2f1 and STILL audio doesn't play in WebGL ‍♂️‍♂️
     
  9. shuba

    shuba

    Joined:
    Jan 17, 2014
    Posts:
    1
    Upgrading to 2020.2.1f1 was solve that problem for me
     
    Erveon and LeonhardP like this.
  10. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,135
    If you're still experiencing this issue in 2020.2.1, it would be much appreciated if you could submit a bug report with a (minimal) reproduction project so we can look into your case specifically.