createStream from URL with fmod HTML5 fails

Hi,

Should the latest FMOD HTML5 support createStream from a HTTP url? I tried even from localhost URL but no go. createStream returns FMOD_ERR_UNSUPPORTED “A command issued was not supported by this object. Possibly a plugin without certain callbacks specified.” I am using emscripten from c++ to html5. The c++ version works fine as well from the URL.

When I change from URL to the same mp3 file in local file system, it works and plays fine.

Relavant code:

FMOD::System* lowSystem = NULL;
AudioEngine::getSystem()->getCoreSystem(&lowSystem);

FMOD_CREATESOUNDEXINFO exinfo;
memset(&exinfo, 0, sizeof(FMOD_CREATESOUNDEXINFO));
exinfo.cbsize = sizeof(FMOD_CREATESOUNDEXINFO);
exinfo.suggestedsoundtype = FMOD_SOUND_TYPE_MPEG;
FMOD_MODE fmod_mode = FMOD_DEFAULT | FMOD_CREATESTREAM;
FMOD_RESULT result = lowSystem->createStream(url.c_str(), fmod_mode, &exinfo, &m_sound);

Unfortunately our documentation is a little thin in this area, however I can confirm that the unsupported error is correct. FMOD for HTML5 does not support sockets, this precludes net-streams and live update / profiler functionality.

I’ll issue a couple of tasks, one for improved documentation and one to revisit HTML5 socket support.