tor-browser

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

test_peerConnection_restrictBandwidthTargetBitrate.html (769B)


      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: "Bug 1404250",
     11    title: "Extremely bitrate restricted video-only peer connection"
     12  });
     13 
     14  runNetworkTest(function (options) {
     15    const test = new PeerConnectionTest(options);
     16    test.setMediaConstraints([{video: true}], [{video: true}]);
     17    test.chain.insertAfter('PC_REMOTE_GET_OFFER', [
     18      function PC_REMOTE_ADD_TIAS(test) {
     19        test._local_offer.sdp = sdputils.addTiasBps(
     20          test._local_offer.sdp, 25000);
     21        info("Offer with TIAS: " + JSON.stringify(test._local_offer));
     22      }
     23    ]);
     24    return test.run();
     25  });
     26 </script>
     27 </pre>
     28 </body>
     29 </html>