From bb0de3ca9f3e433d75c180f36b494173e5070d14 Mon Sep 17 00:00:00 2001 From: "vikasmarwaha@webrtc.org" Date: Thu, 9 Jan 2014 00:51:19 +0000 Subject: [PATCH] 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 --- samples/js/demos/html/dtmf1.html | 2 +- samples/js/demos/html/multiple.html | 4 ++-- samples/js/demos/html/pc1-audio.html | 2 +- samples/js/demos/html/pc1.html | 2 +- samples/js/demos/html/pc1_sdp_munge.html | 2 +- samples/js/demos/html/states.html | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/js/demos/html/dtmf1.html b/samples/js/demos/html/dtmf1.html index b97791bc3d..de5c22a5cc 100644 --- a/samples/js/demos/html/dtmf1.html +++ b/samples/js/demos/html/dtmf1.html @@ -62,7 +62,7 @@ function gotStream(stream){ pc1.addStream(localstream); trace("Adding Local Stream to peer connection"); - pc1.createOffer(gotDescription1, null, sdpConstraints); + pc1.createOffer(gotDescription1, null, null); } function call() { diff --git a/samples/js/demos/html/multiple.html b/samples/js/demos/html/multiple.html index 97d0c883b1..2800d178a7 100644 --- a/samples/js/demos/html/multiple.html +++ b/samples/js/demos/html/multiple.html @@ -89,11 +89,11 @@ function call() { pc1_local.addStream(localstream); trace("Adding local stream to pc1_local"); - pc1_local.createOffer(gotDescription1Local, null, sdpConstraints); + pc1_local.createOffer(gotDescription1Local, null, null); pc2_local.addStream(localstream); trace("Adding local stream to pc2_local"); - pc2_local.createOffer(gotDescription2Local, null, sdpConstraints); + pc2_local.createOffer(gotDescription2Local, null, null); } function gotDescription1Local(desc) { diff --git a/samples/js/demos/html/pc1-audio.html b/samples/js/demos/html/pc1-audio.html index cce0125394..4273b62694 100644 --- a/samples/js/demos/html/pc1-audio.html +++ b/samples/js/demos/html/pc1-audio.html @@ -39,7 +39,7 @@ function gotStream(stream){ pc1.addStream(localstream); trace("Adding Local Stream to peer connection"); - pc1.createOffer(gotDescription1, null, sdpConstraints); + pc1.createOffer(gotDescription1, null, null); } function call() { diff --git a/samples/js/demos/html/pc1.html b/samples/js/demos/html/pc1.html index 1c3e9fa53e..c3f3ced4b6 100644 --- a/samples/js/demos/html/pc1.html +++ b/samples/js/demos/html/pc1.html @@ -82,7 +82,7 @@ function call() { pc1.addStream(localstream); trace("Adding Local Stream to peer connection"); - pc1.createOffer(gotDescription1, null, sdpConstraints); + pc1.createOffer(gotDescription1, null, null); } function gotDescription1(desc){ diff --git a/samples/js/demos/html/pc1_sdp_munge.html b/samples/js/demos/html/pc1_sdp_munge.html index b4e44a6896..2c57ceeb5f 100644 --- a/samples/js/demos/html/pc1_sdp_munge.html +++ b/samples/js/demos/html/pc1_sdp_munge.html @@ -215,7 +215,7 @@ function maybeAddLineBreakToEnd(sdp) { } function createOffer(){ - pc1.createOffer(gotDescription1, null, sdpConstraints); + pc1.createOffer(gotDescription1, null, null); } function setOffer(){ diff --git a/samples/js/demos/html/states.html b/samples/js/demos/html/states.html index 59c12679ff..4a1c28ddf5 100644 --- a/samples/js/demos/html/states.html +++ b/samples/js/demos/html/states.html @@ -129,7 +129,7 @@ function call() { pc2.onaddstream = gotRemoteStream; pc1.addStream(localstream); trace("Adding Local Stream to peer connection"); - pc1.createOffer(gotDescription1, null, sdpConstraints); + pc1.createOffer(gotDescription1, null, null); } function gotDescription1(desc){