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_audio.js"></script> | 4 <script type="text/javascript" src="webrtc_test_audio.js"></script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 $ = function(id) { | 6 $ = function(id) { |
7 return document.getElementById(id); | 7 return document.getElementById(id); |
8 }; | 8 }; |
9 | 9 |
10 var gFirstConnection = null; | 10 var gFirstConnection = null; |
(...skipping 15 matching lines...) Expand all Loading... |
26 // this. | 26 // this. |
27 var maybeForceIsac16K = function(sdp) { return sdp; }; | 27 var maybeForceIsac16K = function(sdp) { return sdp; }; |
28 function forceIsac16KInSdp() { | 28 function forceIsac16KInSdp() { |
29 maybeForceIsac16K = function(sdp) { | 29 maybeForceIsac16K = function(sdp) { |
30 // Remove all other codecs (not the video codecs though). Also leave | 30 // Remove all other codecs (not the video codecs though). Also leave |
31 // 126 for DTMF. | 31 // 126 for DTMF. |
32 sdp = sdp.replace(/m=audio (\d+) RTP\/SAVPF.*\r\n/g, | 32 sdp = sdp.replace(/m=audio (\d+) RTP\/SAVPF.*\r\n/g, |
33 'm=audio $1 RTP/SAVPF 103 126\r\n'); | 33 'm=audio $1 RTP/SAVPF 103 126\r\n'); |
34 sdp = sdp.replace('a=fmtp:111 minptime=10', 'a=fmtp:103 minptime=10'); | 34 sdp = sdp.replace('a=fmtp:111 minptime=10', 'a=fmtp:103 minptime=10'); |
35 sdp = sdp.replace( | 35 sdp = sdp.replace( |
36 /a=rtpmap:(?!(103|126))\d{1,3} (?!X?VP8|red|ulpfec).*\r\n/g, | 36 /a=rtpmap:(?!(103|126|101))\d{1,3} (?!X?VP8|red|ulpfec).*\r\n/g, |
37 ''); | 37 ''); |
38 return sdp; | 38 return sdp; |
39 }; | 39 }; |
40 } | 40 } |
41 | 41 |
42 // When using external SDES, the crypto key is chosen by javascript. | 42 // When using external SDES, the crypto key is chosen by javascript. |
43 var EXTERNAL_SDES_LINES = { | 43 var EXTERNAL_SDES_LINES = { |
44 'audio': 'a=crypto:1 AES_CM_128_HMAC_SHA1_80 ' + | 44 'audio': 'a=crypto:1 AES_CM_128_HMAC_SHA1_80 ' + |
45 'inline:PS1uQCVeeCFCanVmcjkpPywjNWhcYD0mXXtxaVBR', | 45 'inline:PS1uQCVeeCFCanVmcjkpPywjNWhcYD0mXXtxaVBR', |
46 'video': 'a=crypto:1 AES_CM_128_HMAC_SHA1_80 ' + | 46 'video': 'a=crypto:1 AES_CM_128_HMAC_SHA1_80 ' + |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 <td><canvas width="320" height="240" id="remote-view-2-canvas" | 806 <td><canvas width="320" height="240" id="remote-view-2-canvas" |
807 style="display:none"></canvas></td> | 807 style="display:none"></canvas></td> |
808 <td><canvas width="320" height="240" id="remote-view-3-canvas" | 808 <td><canvas width="320" height="240" id="remote-view-3-canvas" |
809 style="display:none"></canvas></td> | 809 style="display:none"></canvas></td> |
810 <td><canvas width="320" height="240" id="remote-view-4-canvas" | 810 <td><canvas width="320" height="240" id="remote-view-4-canvas" |
811 style="display:none"></canvas></td> | 811 style="display:none"></canvas></td> |
812 </tr> | 812 </tr> |
813 </table> | 813 </table> |
814 </body> | 814 </body> |
815 </html> | 815 </html> |
OLD | NEW |