Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Hardcode video at 640x480
Browse files Browse the repository at this point in the history
  • Loading branch information
anantn committed Mar 20, 2012
1 parent 926c7e0 commit 9648627
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions static/static/js/mozdemo.js
Expand Up @@ -108,9 +108,9 @@ var CallingClient = function(config_, username, peer, local, remote, start_call)
setTimeout(internal_poll, 1000);
};

if (start_call) {
if (start_call != "false") {
log("Making call to " + peer);
webrtc.startCall("1234", ip, local, remote);
webrtc.startCall(local, remote);
} else {
log("Waiting for call as " + username);
}
Expand Down
13 changes: 7 additions & 6 deletions views/mozdemo.html
Expand Up @@ -25,20 +25,20 @@
}
#local {
margin-top: 20px;
margin-left: 50px;
margin-left: 30px;
margin-bottom: 50px;
float: left;
width: 45%;
float: right;
width: 640px;
height: 480px;
border-style: solid;
border-width: 2px;
}
#remote {
margin-top: 20px;
margin-right: 50px;
margin-right: 30px;
margin-bottom: 50px;
float: right;
width: 45%;
float: left;
width: 640px;
height: 480px;
border-style: solid;
border-width: 2px;
Expand Down Expand Up @@ -66,6 +66,7 @@
{{/if}}

<div id="remote"><canvas id="rview" width="640" height="480"></canvas><br><p>Remote</p></div>

<div id="local"><canvas id="lview" width="640" height="480"></canvas><br><p>Local</p></div>

<div id="logwindow"></div>
Expand Down
2 changes: 1 addition & 1 deletion web.js
Expand Up @@ -91,7 +91,7 @@ app.get("/mozdemoa/:user" + user_re + "/:target" + user_re, function(request, re
var params = {
me: request.params.user,
them: request.params.target,
start:false
start: false
};

response.render("mozdemo.html", params);
Expand Down

0 comments on commit 9648627

Please sign in to comment.