Search Unity

audio clips in WebGL asset bundles can have an invalid compression for WebGL platform

Discussion in 'Web' started by tayl0r, Jun 30, 2015.

  1. tayl0r

    tayl0r

    Joined:
    Jan 6, 2012
    Posts:
    85
    We have all our audio clips set to Vorbis compression format. No platform overrides are set.

    We built WebGL asset bundles and when sounds are played from these asset bundles, we get an error, "Unsupported file or audio format".

    I *think* it is because we didn't set the WebGL platform override to use AAC compression (the only supported compression on WebGL). I'm assuming that it used the Vorbis compression format for these clips.

    When building asset bundles for WebGL, Unity should be smart enough to change the compression format to AAC since that's the *only* supported format. Or, offer a "Compressed" format, which just chooses 1 of the supported compression formats per platform.

     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    This sounds like a bug. Could you file a bug report with a repro case?
     
  3. tayl0r

    tayl0r

    Joined:
    Jan 6, 2012
    Posts:
    85
    Done. bug # 709020. Thanks Jonas!