Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Provide local canvas for rendering

  • Loading branch information...
commit d815f481ad8053b185115b8c5ce399060e28b89f 1 parent 23d4724
@anantn authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/static/js/mozdemo.js
View
4 static/static/js/mozdemo.js
@@ -54,7 +54,7 @@ var CallingClient = function(config_, username, peer, local, remote, start_call,
switch (msg) {
case "RINGING":
var answer = confirm("Incoming call! Accept?");
- if (answer) webrtc.accept(remote);
+ if (answer) webrtc.accept(local, remote);
else webrtc.hangup();
break;
case "IPFOUND":
@@ -115,7 +115,7 @@ var CallingClient = function(config_, username, peer, local, remote, start_call,
if (start_call) {
log("Making call to " + peer);
- webrtc.startCall("1234", ip, remote);
+ webrtc.startCall("1234", ip, local, remote);
} else {
log("Waiting for call as " + username);
}
Please sign in to comment.
Something went wrong with that request. Please try again.