From 4c44fe0561ef25aa1d99e765bb0f84cd95ce8c30 Mon Sep 17 00:00:00 2001 From: "vikasmarwaha@webrtc.org" Date: Mon, 8 Apr 2013 21:23:58 +0000 Subject: [PATCH] Updated pranswer, dtmf demos & deleted pc1-deprecated.html. Review URL: https://webrtc-codereview.appspot.com/1287007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3783 4adac7df-926f-26a2-2b94-8c16560cd09d --- samples/js/demos/html/dtmf1.html | 4 + samples/js/demos/html/pc1-deprecated.html | 133 ------------------ samples/js/demos/html/pranswer.html | 161 ++++++++++++---------- samples/js/demos/index.html | 6 - 4 files changed, 91 insertions(+), 213 deletions(-) delete mode 100644 samples/js/demos/html/pc1-deprecated.html diff --git a/samples/js/demos/html/dtmf1.html b/samples/js/demos/html/dtmf1.html index cea7299c24..3233cab6f4 100644 --- a/samples/js/demos/html/dtmf1.html +++ b/samples/js/demos/html/dtmf1.html @@ -98,6 +98,10 @@ function gotDescription1(desc){ } function gotDescription2(desc){ + // Setting PCMU as the preferred codec. + desc.sdp = desc.sdp.replace(/m=.*\r\n/, "m=audio 1 RTP/SAVPF 0 126\r\n"); + // Workaround for issue 1603. + desc.sdp = desc.sdp.replace(/.*fmtp.*\r\n/g, ""); pc2.setLocalDescription(desc); trace("Answer from pc2 \n" + desc.sdp); pc1.setRemoteDescription(desc); diff --git a/samples/js/demos/html/pc1-deprecated.html b/samples/js/demos/html/pc1-deprecated.html deleted file mode 100644 index f12987da3c..0000000000 --- a/samples/js/demos/html/pc1-deprecated.html +++ /dev/null @@ -1,133 +0,0 @@ - - - -PeerConnection Demo 1 - - - - - -
- - - -
- - - - - - - diff --git a/samples/js/demos/html/pranswer.html b/samples/js/demos/html/pranswer.html index ba1949ec1d..d4425d619b 100644 --- a/samples/js/demos/html/pranswer.html +++ b/samples/js/demos/html/pranswer.html @@ -1,93 +1,106 @@ - PeerConnection PRANSWER Demo - - - - - -
- - - - + + + + + +
+ + + + - diff --git a/samples/js/demos/index.html b/samples/js/demos/index.html index de3d290281..5651ba7286 100644 --- a/samples/js/demos/index.html +++ b/samples/js/demos/index.html @@ -56,12 +56,6 @@ Shows how to set up a simple 1:1 audio only call. - - - pc1-deprecated.html - - Like pc1.html, but uses PeerConnection00 instead of RTCPeerConnection. - multiple.html