quiet / quiet-js

Transmit data with sound using Web Audio -- Javascript binding for libquiet
BSD 3-Clause "New" or "Revised" License
2.19k stars 150 forks source link

could the examples run locally? #13

Closed dimpapadop closed 6 years ago

dimpapadop commented 7 years ago

Is there any way to run locally (for example by double click the html from my hdd)

I am getting some errors when trying to do that.

Thank you and great and impressive work you have here.

Dimitrios

brian-armstrong commented 7 years ago

@dimpapadop

Hi, thanks for trying quiet

What error are you getting specifically, and which OS are you using? I believe the easiest way to handle this on OSX/linux is to set up nginx pointed at some part of your local filesystem

dimpapadop commented 7 years ago

hi brian. I am using windows. It;s really impressive.

the errors i get is XMLHttpRequest cannot load file:///D:/javascripts/quiet-profiles.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. ..... and also for XMLHttpRequest cannot load file:///D:/!00%20PROJECTS/DATA%20THROUGH%20SOUND/quiet-quiet-js-be8bbc0/examples/send_rec/javascripts/quiet-emscripten.js.mem. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

i'd like to test it also via a cordova app

thank you

brian-armstrong commented 7 years ago

http://stackoverflow.com/a/18137280/6052863 This might help you

dimpapadop commented 7 years ago

thank you. I was actually reading that article and suggestions too.

congratulations again!

brian-armstrong commented 7 years ago

@dimpapadop Did it help?

dimpapadop commented 7 years ago

brian by cmd line opening chrome letting access files 2 / 3 errors were eliminated. I think i'll find a way.

I'll also try to see if it can be run in a cordova app with an embedded httpd