- Home /
Streaming MP3s in WebGL Editor
My project has a folder of MP3s in StreamingAssets so that audio can be streamed at run-time. I usually run the editor as the Android platform because I frequently test mobile builds and I leave WebGL builds to Jenkins build machines. When I switched to WebGL on my machine, I found that the streamed MP3s will not play and produce the error:
Streaming of 'mp3' on this platform is not supported UnityEngine.WWW:GetAudioClipCompressed()
However when playing real WebGL builds I see no error and the MP3s play fine. This works across latest versions of Firefox, Chrome, and Edge. I've found this thread that suggests this should not be working period. The official Unity documentation on WWW.GetAudioClipCompressed() also suggests that WebGL does not support MP3.
Is there some non-obvious problem with streaming MP3s in WebGL or has MP3 streaming support been added and this is just a legacy error message that can safely be ignored?
EDIT: I'm using Unity 2017.3.1f1
Comment
Your answer
Follow this Question
Related Questions
Stream audio from a YouTube playlist's URL? 0 Answers
How to get this .mp3 conversion script to play through an audio source? 0 Answers
UnityWebRequestMultimedia.GetAudioClip dont't work in WebGL build (2019.3.15f1). 1 Answer
Best way to play and delete many audio files 0 Answers
Loaclization in WebGL? 1 Answer