Skip to content

Commit

Permalink
Provide local canvas for rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
anantn committed Mar 20, 2012
1 parent 23d4724 commit d815f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/static/js/mozdemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit d815f48

Please sign in to comment.