(WEB_GL) WWW.GetAudioClip not work with "ogg" both Firefox and Chrome

This is the very simple method I use to download ogg through StartCouroutine()

public static IEnumerator downloadOGG()
{
using (WWW www = new WWW(“http://www.myurl.com/mysong.ogg”))
{
yield return www;
if (www.error != null)
throw new Exception(“WWW download had an error:” + www.error);:wink:
AudioClip audioclip = [www.GetAudioClip(false](http://www.GetAudioClip(false), false, AudioType.OGGVORBIS);
}
}

This method is working fine on Editor and PC Standalone.
but not the WEBGL

I got this error from the web console:
“Streaming of ‘ogg’ on this platform is not supported.”

I look through this guide,

Then I look through the support media document. It said .ogg file should work in both Chrome and Firefox, but both are not working.

Is there anyway to download the .ogg file in the WebGL or this feature is still bugged? I would be really appreciate if someone help me after everything I’ve done so far… :frowning:

Thanks!

This should work. Does WWW.audioClip work? If you cannot get it to work, file a bug report with the ogg file you are trying to use and your code, and paste the case number here - and we will take a look.

1 Like

edit* WWW.audioClip is also not work

I have submitted the bug report through unity, with a sample code and .ogg, but I haven’t receive the respond mail yet, so I cant tell you the case number for now.

The topic of the issue is the same as this topic
(WEB_GL) WWW.GetAudioClip not work with “ogg” both Firefox and Chrome

I will tell you the case number as soon as I receive the mail. Thanks you so much for your effort!

Here is a case number “741742”,

Ps. I think I created a duplicate topic as the first time I thought it wasn’t submitted (case 741741). please close one of them.