Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3252)

Unified Diff: chrome/test/data/webrtc/manual/peerconnection.js

Issue 23460010: Swap force OPUS to iSAC in peerconnection.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed ISAC > iSAC Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/webrtc/manual/peerconnection.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/manual/peerconnection.js
diff --git a/chrome/test/data/webrtc/manual/peerconnection.js b/chrome/test/data/webrtc/manual/peerconnection.js
index f5b9fef26d29a7930dc663b967dd0f315d3cb9e7..af15e5b75b5f7abedee58d5b7a5bfc69c97a2c01 100644
--- a/chrome/test/data/webrtc/manual/peerconnection.js
+++ b/chrome/test/data/webrtc/manual/peerconnection.js
@@ -117,10 +117,10 @@ function insertDtmfFromHere() {
insertDtmfOnSender(tones, duration, gap);
}
-function forceOpusChanged() {
- var forceOpus = $('force-opus').checked;
- if (forceOpus) {
- forceOpus_();
+function forceIsacChanged() {
+ var forceIsac = $('force-isac').checked;
+ if (forceIsac) {
+ forceIsac_();
} else {
dontTouchSdp_();
}
@@ -332,12 +332,13 @@ function preferOpus_() {
}
/** @private */
-function forceOpus_() {
+function forceIsac_() {
setOutgoingSdpTransform(function(sdp) {
// Remove all other codecs (not the video codecs though).
sdp = sdp.replace(/m=audio (\d+) RTP\/SAVPF.*\r\n/g,
- 'm=audio $1 RTP/SAVPF 111\r\n');
- sdp = sdp.replace(/a=rtpmap:(?!111)\d{1,3} (?!VP8|red|ulpfec).*\r\n/g, '');
+ 'm=audio $1 RTP/SAVPF 104\r\n');
+ sdp = sdp.replace('a=fmtp:111 minptime=10', 'a=fmtp:104 minptime=10');
+ sdp = sdp.replace(/a=rtpmap:(?!104)\d{1,3} (?!VP8|red|ulpfec).*\r\n/g, '');
return sdp;
});
}
« no previous file with comments | « chrome/test/data/webrtc/manual/peerconnection.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698