Index: content/test/data/media/peerconnection-call.html |
diff --git a/content/test/data/media/peerconnection-call.html b/content/test/data/media/peerconnection-call.html |
index 3ee42ec5686a5f1d1a250736385dad0ffc5f0860..c1ba13691df284e4c955678b541b6f6f2a32ad7b 100644 |
--- a/content/test/data/media/peerconnection-call.html |
+++ b/content/test/data/media/peerconnection-call.html |
@@ -27,11 +27,15 @@ |
var maybeForceIsac16K = function(sdp) { return sdp; }; |
function forceIsac16KInSdp() { |
maybeForceIsac16K = function(sdp) { |
+ if (sdp.search('m=audio') == -1) |
+ return sdp; |
+ |
sdp = sdp.replace(/m=audio (\d+) RTP\/SAVPF.*\r\n/g, |
'm=audio $1 RTP/SAVPF 103 126\r\n'); |
sdp = sdp.replace('a=fmtp:111 minptime=10', 'a=fmtp:103 minptime=10'); |
if (sdp.search('a=rtpmap:103 ISAC/16000') == -1) |
failTest('Missing iSAC 16K codec on Android; cannot force codec.'); |
+ |
return sdp; |
}; |
sendValueToTest('isac-forced'); |