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

Side by Side Diff: content/test/data/media/peerconnection-call-audio.html

Issue 2843923002: Turned the check in callWithIsac16KAndEnsureAudioIsPlaying case-insensitive. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script>
4 <script type="text/javascript" src="webrtc_test_common.js"></script> 4 <script type="text/javascript" src="webrtc_test_common.js"></script>
5 <script type="text/javascript" src="webrtc_test_audio.js"></script> 5 <script type="text/javascript" src="webrtc_test_audio.js"></script>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 $ = function(id) { 7 $ = function(id) {
8 return document.getElementById(id); 8 return document.getElementById(id);
9 }; 9 };
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 }; 57 };
58 58
59 waitForConnectionToStabilize(gFirstConnection, onCallEstablished); 59 waitForConnectionToStabilize(gFirstConnection, onCallEstablished);
60 } 60 }
61 61
62 function callWithIsac16KAndEnsureAudioIsPlaying(constraints) { 62 function callWithIsac16KAndEnsureAudioIsPlaying(constraints) {
63 setOfferSdpTransform(function(sdp) { 63 setOfferSdpTransform(function(sdp) {
64 sdp = sdp.replace(/m=audio (\d+) RTP\/SAVPF.*\r\n/g, 64 sdp = sdp.replace(/m=audio (\d+) RTP\/SAVPF.*\r\n/g,
65 'm=audio $1 RTP/SAVPF 103 126\r\n'); 65 'm=audio $1 RTP/SAVPF 103 126\r\n');
66 sdp = sdp.replace('a=fmtp:111 minptime=10', 'a=fmtp:103 minptime=10'); 66 sdp = sdp.replace('a=fmtp:111 minptime=10', 'a=fmtp:103 minptime=10');
67 if (sdp.search('a=rtpmap:103 ISAC/16000') == -1) 67 if (sdp.search(/a=rtpmap:103 ISAC\/16000/i) == -1)
68 failTest('Missing iSAC 16K codec on Android; cannot force codec.'); 68 failTest('Missing iSAC 16K codec on Android; cannot force codec.');
69 69
70 return sdp; 70 return sdp;
71 }); 71 });
72 callAndEnsureAudioIsPlaying(constraints); 72 callAndEnsureAudioIsPlaying(constraints);
73 } 73 }
74 74
75 function enableRemoteVideo(peerConnection, enabled) { 75 function enableRemoteVideo(peerConnection, enabled) {
76 remoteStream = peerConnection.getRemoteStreams()[0]; 76 remoteStream = peerConnection.getRemoteStreams()[0];
77 remoteStream.getVideoTracks()[0].enabled = enabled; 77 remoteStream.getVideoTracks()[0].enabled = enabled;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 style="display:none" autoplay></video></td> 217 style="display:none" autoplay></video></td>
218 <!-- Canvases are named after their corresponding video elements. --> 218 <!-- Canvases are named after their corresponding video elements. -->
219 <td><canvas width="320" height="240" id="remote-view-1-canvas" 219 <td><canvas width="320" height="240" id="remote-view-1-canvas"
220 style="display:none"></canvas></td> 220 style="display:none"></canvas></td>
221 <td><canvas width="320" height="240" id="remote-view-2-canvas" 221 <td><canvas width="320" height="240" id="remote-view-2-canvas"
222 style="display:none"></canvas></td> 222 style="display:none"></canvas></td>
223 </tr> 223 </tr>
224 </table> 224 </table>
225 </body> 225 </body>
226 </html> 226 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698