tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_peerConnection_restartIceNoRtcpMux.html (1212B)


      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, with disabled RTCP-Mux"
     12  });
     13 
     14  var test;
     15  runNetworkTest(function (options) {
     16    options = options || { };
     17    options.rtcpmux = false;
     18    test = new PeerConnectionTest(options);
     19 
     20    addRenegotiation(test.chain,
     21      [
     22        // causes a full, normal ice restart
     23        function PC_LOCAL_SET_OFFER_OPTION(test) {
     24          test.setOfferOptions({ iceRestart: true });
     25        },
     26        // Make sure we don't get the end of gathering racing against the
     27        // setting of the new offer
     28        function PC_LOCAL_WAIT_FOR_END_OF_TRICKLE(test) {
     29          return test.pcLocal.endOfTrickleIce;
     30        },
     31        // Expect gathering to start again
     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>