issue with Step6
when i open step 6 , i encounter few problem
in console:
XMLHttpRequest cannot load https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913. Origin http://192.168.2.11:2013 is not allowed by Access-Control-Allow-Origin.
navigator.getUserMedia error: NavigatorUserMediaError {constraintName: "", message: "", name: "PERMISSION_DENIED"}
Comments (10)
-
repo owner -
reporter i am running this from http://192.168.2.11:2013
-
repo owner Try running from localhost:2013
-
reporter not working still i got below issue : Step 6 navigator.getUserMedia error: NavigatorUserMediaError {constraintName: "", message: "", name: "PERMISSION_DENIED"}
and for step 7 XMLHttpRequest cannot load https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913. Origin http://localhost:2013 is not allowed by Access-Control-Allow-Origin. localhost/:1 navigator.getUserMedia error: NavigatorUserMediaError {constraintName: "", message: "", name: "PERMISSION_DENIED"}
What i want to know is that :
1:what is user and key in https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913 2: can is remove dependecny on https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913
-
repo owner Regarding the XHR dependency: you can get rid of that. It's simply to get a TURN/STUN server (which isn't strictly necessary).
Regarding the PERMISSION_DENIED error: - are you calling getUserMedia() as per the code? - are you running the code from localhost:2013 and not some other URL? - can you run some other app that uses getUserMedia(), for example http://simpl.info/gum?
-
reporter ok still can i use https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913 or i have to get username and key ??
-
repo owner As I remember it, you can't do a cross origin XHR request to that URL (certainly not from localhost). You could proxy the request or just leave it out.
-
reporter sorry you could not get it. i want to say suppose i upload this to any to any url(mysite). can i still use https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913 i.e. is it meant for public use or i have to register to get username and key
-
reporter - changed status to resolved
resolved
-
hi @gauravmishra, I am having same kind of problem. I used $.ajax() to get the turn server. now the issue is:
"
SyntaxError: missing ; before statement https://computeengineondemand.appspot.com/turn?username=611354401&key=4080218913&callback=jsonpCallback&_=1431675108520
"
- And when I try to access it in RTCPeerConnection(pc_config) the error pops out saying Can not create peer Connection because of the username missing.
- Can you please post your solution, or look into my problem?
It would be helpful. Thanks in advance
- Log in to comment
What URL are you running this from?