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
This commit is contained in:
vikasmarwaha@webrtc.org
2013-04-08 21:23:58 +00:00
parent 6ff76c7404
commit 4c44fe0561
4 changed files with 91 additions and 213 deletions

View File

@@ -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);