| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |