Updated Demos so they work on FF, changed the third argument in CreateOffer to null as it doesnot really require sdpConstraints.

R=juberti@google.com

Review URL: https://webrtc-codereview.appspot.com/6769004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5356 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
vikasmarwaha@webrtc.org 2014-01-09 00:51:19 +00:00
parent 4177615e87
commit bb0de3ca9f
6 changed files with 7 additions and 7 deletions

View File

@ -62,7 +62,7 @@ function gotStream(stream){
pc1.addStream(localstream); pc1.addStream(localstream);
trace("Adding Local Stream to peer connection"); trace("Adding Local Stream to peer connection");
pc1.createOffer(gotDescription1, null, sdpConstraints); pc1.createOffer(gotDescription1, null, null);
} }
function call() { function call() {

View File

@ -89,11 +89,11 @@ function call() {
pc1_local.addStream(localstream); pc1_local.addStream(localstream);
trace("Adding local stream to pc1_local"); trace("Adding local stream to pc1_local");
pc1_local.createOffer(gotDescription1Local, null, sdpConstraints); pc1_local.createOffer(gotDescription1Local, null, null);
pc2_local.addStream(localstream); pc2_local.addStream(localstream);
trace("Adding local stream to pc2_local"); trace("Adding local stream to pc2_local");
pc2_local.createOffer(gotDescription2Local, null, sdpConstraints); pc2_local.createOffer(gotDescription2Local, null, null);
} }
function gotDescription1Local(desc) { function gotDescription1Local(desc) {

View File

@ -39,7 +39,7 @@ function gotStream(stream){
pc1.addStream(localstream); pc1.addStream(localstream);
trace("Adding Local Stream to peer connection"); trace("Adding Local Stream to peer connection");
pc1.createOffer(gotDescription1, null, sdpConstraints); pc1.createOffer(gotDescription1, null, null);
} }
function call() { function call() {

View File

@ -82,7 +82,7 @@ function call() {
pc1.addStream(localstream); pc1.addStream(localstream);
trace("Adding Local Stream to peer connection"); trace("Adding Local Stream to peer connection");
pc1.createOffer(gotDescription1, null, sdpConstraints); pc1.createOffer(gotDescription1, null, null);
} }
function gotDescription1(desc){ function gotDescription1(desc){

View File

@ -215,7 +215,7 @@ function maybeAddLineBreakToEnd(sdp) {
} }
function createOffer(){ function createOffer(){
pc1.createOffer(gotDescription1, null, sdpConstraints); pc1.createOffer(gotDescription1, null, null);
} }
function setOffer(){ function setOffer(){

View File

@ -129,7 +129,7 @@ function call() {
pc2.onaddstream = gotRemoteStream; pc2.onaddstream = gotRemoteStream;
pc1.addStream(localstream); pc1.addStream(localstream);
trace("Adding Local Stream to peer connection"); trace("Adding Local Stream to peer connection");
pc1.createOffer(gotDescription1, null, sdpConstraints); pc1.createOffer(gotDescription1, null, null);
} }
function gotDescription1(desc){ function gotDescription1(desc){