test_peerConnection_restartIceNoBundleNoRtcpMux.html (1206B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <script type="application/javascript" src="pc.js"></script> 5 </head> 6 <body> 7 <pre id="test"> 8 <script type="application/javascript"> 9 createHTML({ 10 bug: "906986", 11 title: "Renegotiation: restart ice, no bundle and disabled RTCP-Mux" 12 }); 13 14 var test; 15 runNetworkTest(function (options) { 16 options = options || { }; 17 options.bundle = false; 18 options.rtcpmux = false; 19 test = new PeerConnectionTest(options); 20 21 addRenegotiation(test.chain, 22 [ 23 // causes a full, normal ice restart 24 function PC_LOCAL_SET_OFFER_OPTION(test) { 25 test.setOfferOptions({ iceRestart: true }); 26 }, 27 // Make sure we don't get the end of gathering racing against the 28 // setting of the new offer 29 function PC_LOCAL_WAIT_FOR_END_OF_TRICKLE(test) { 30 return test.pcLocal.endOfTrickleIce; 31 }, 32 function PC_LOCAL_SETUP_ICE_HANDLER(test) { 33 test.pcLocal.setupIceCandidateHandler(test); 34 }, 35 ] 36 ); 37 38 test.setMediaConstraints([{audio: true}, {video: true}], 39 [{audio: true}, {video: true}]); 40 return test.run(); 41 }); 42 43 </script> 44 </pre> 45 </body> 46 </html>