tor-browser

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

test_peerConnection_basicAudio.html (596B)


      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: "796892",
     11    title: "Basic audio-only peer connection"
     12  });
     13 
     14  var test;
     15  runNetworkTest(function (options) {
     16    test = new PeerConnectionTest(options);
     17    test.setMediaConstraints([{audio: true}], [{audio: true}]);
     18    // pc.js uses video elements by default, we want to test audio elements here
     19    test.pcLocal.audioElementsOnly = true;
     20    return test.run();
     21  });
     22 </script>
     23 </pre>
     24 </body>
     25 </html>