issue with Step6

Issue #2 resolved
gaurav kumar mishra created an issue

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)

  1. gaurav kumar mishra 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

  2. Sam Dutton 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?

  3. Sam Dutton 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.

  4. Haroon Khan

    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

  5. Log in to comment