# createStream from URL with fmod HTML5 fails

**URL:** <https://qa.fmod.com/t/createstream-from-url-with-fmod-html5-fails/15794>\
**Category:** FMOD Engine\
**Created:** [May 20, 2020, 11:26am UTC](https://qa.fmod.com/t/createstream-from-url-with-fmod-html5-fails/15794 "2020-05-20T11:26:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frogmind](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@frogmind](https://qa.fmod.com/u/frogmind)\
**Post date:** [May 20, 2020, 11:26am UTC](https://qa.fmod.com/t/createstream-from-url-with-fmod-html5-fails/15794/1 "2020-05-20T11:26:24Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [May 20, 2020, 11:01pm UTC](https://qa.fmod.com/t/createstream-from-url-with-fmod-html5-fails/15794/2 "2020-05-20T23:01:34Z")

</div>

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.
