- Home /
Trying to stream .ogg file in Mac OSX results in error without description
Hey, guys
So I'm trying to stream an external .ogg file using the WWW class.
My code is fully functional in Windows, but for some reason, it doesn't work on Mac OSX. The real problem is that the console shows me that there's one error, but there is no description or information about the error: http://imgur.com/a/tlckm
This is the code:
string songPath = Path.ChangeExtension(filePath, "ogg");
WWW audioLoader = new WWW("file:///" + songPath);
while (audioLoader.isDone == false)
{
yield return null;
}
compAudio.clip = audioLoader.GetAudioClipCompressed(false);
dspsTimeSong = AudioSettings.dspTime;
compAudio.PlayScheduled(dspsTimeSong);
Any idea what could be happening?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612113231im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Play a ogg file in Unity3d says “Streaming of 'ogg' on this platform is not supported” 1 Answer
How can I convert a video to .ogg format and have it play from a web server? 7 Answers
Ogg Stream Live Video 0 Answers
Best practice: URL address for storing streamed music files 1 Answer
How long should a streaming OGG audio take to start playing? 0 Answers