cjb / serverless-webrtc

A demo of using WebRTC with no signaling server.
Other
1.54k stars 239 forks source link

Chromium Works But Doesn't #24

Open bitnom opened 8 years ago

bitnom commented 8 years ago

If I open up the hosted demo it works just fine in Chromium. If I clone the git repo and open it locally, it doesn't work in Chromium but does work in Chrome. What's going on? I want to use this script in Electron.js. Why would it work locally in Chrome but not Chromium? I haven't tried it in Electron yet but I'm hoping it will work. I don't want to run a python script.

Is there some difference between the hosted demo and what's in the git repo?

cjb commented 8 years ago

It's a policy setting inside Chrome that blocks network connections from file:/// URLs. The Python script runs a local webserver so that you aren't using file:///.

Firefox (and apparently Chromium!) don't have this restriction.