Play from online mp3

Hi everyone,
I’ve been trying to play online mp3 file, First I download my file using libcurl and save it in memory, then try to play with OPEN_MEMEORY flag using FMOD.
My code working just fine when downloading all of my mp3 and give the correct length, But I tried to play while downloading and no luck. my best guess is that my length is not updating or FMOD just do not support it.
Is there any good example of how to play from memory progressively?

I think you should have a look at our net_stream example- it is in the core examples folder, in the case of Android that’s “{fmod api version}\api\core\examples\androidstudio\ndkbuild\net_stream”.

Essentially you need to call System::createSound with the flags FMOD_CREATESTREAM | FMOD_NONBLOCKING will allow you to pass a string url in as the “name_or_data” argument, and that should handle an online mp3.