Emscripten problem Camera and AudioInput

Hi All,
i’m trying to use emscripten follow this guide:

It works for example project of OF 0.9, but not for AudioInput and examples that use Camera.

Return in the browser Exception thrown, see JavaScript console
In javascript Console:

audioInputExample.js:1 XMLHttpRequest cannot load file:///Users/carminespizuoco/Desktop/of_v0.9.0RC1_osx_release/apps/myApps/audioInputExample/bin/audioInputExample.data. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.fetchRemotePackage @ audioInputExample.js:1

audioInputExample.js:1 Uncaught NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’: Failed to load ‘file:///Users/carminespizuoco/Desktop/of_v0.9.0RC1_osx_release/apps/myApps/audioInputExample/bin/audioInputExample.data’.

In All browser…!

Any Idea to solve it?

for security reasons you can’t use certain resources in a browser if the page is loaded locally as a file, when the application finishes compiling there’s instructions on how to start it using emrun which starts a small webserver and opens the page through that

Thanks for reply Arturo!
The problem is that i did it.

AudioInput work as graphical interface but not ask me about permission of microphone…
CameraExample and OpencvExample give me Exception in browser…!
Emcc -v ok!

If use project without input of user, it works, mesh, EasyCam…blabla…!
Working On OSX 10.10

At this moment my contest emscripten is:
All example not work with “emrun”.

Compiling VideoGrabberExample:
Work on Firefox , From Remote, not work on Chrome and safari.

AudioInputExample
Not Work in chrome and Safari but work in Firefox, from Remote.

OpenCV not work, from remote, and also from this link Work only on Firefox :
http://arturocastro.net/files/of-emscripten/openCvExample/

guiExample
Not compile for the XML side:
In file included from

/Users/carminespizuoco/Desktop/of_v0.9.0RC1_osx_release_2/libs/openFrameworks/utils/ofXml.h:11:10: fatal error: ‘Poco/DOM/Document.h’ file not found #include <Poco/DOM/Document.h> ^ 1 error generated.

I’m in a Kaos…!
Any idea about it?
There are some best practice to develop using emscripten?

all of that works for me in chrome without problem, which version of chrome are you using?

excetp, for xml. the emscripten version still doesn’t have support for xml but that’s a known issue

Google Chrome:
Versione 45.0.2454.101 (64-bit)

Ok for Xml…
for use guiExample in emscripten, i need to remove the xml contest from addon?