tor-browser

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

test_peerConnection_basicAudioVideoTransceivers.html (747B)


      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: "1290948",
     11    title: "Basic audio/video with addTransceiver"
     12  });
     13 
     14  var test;
     15  runNetworkTest(function (options) {
     16    test = new PeerConnectionTest(options);
     17    test.setMediaConstraints([{audio: true}, {video: true}],
     18                             [{audio: true}, {video: true}]);
     19    test.chain.replace("PC_LOCAL_GUM",
     20      [
     21        function PC_LOCAL_GUM_TRANSCEIVERS(test) {
     22          return test.pcLocal.getAllUserMediaAndAddTransceivers(test.pcLocal.constraints);
     23        }
     24      ]);
     25 
     26    return test.run();
     27  });
     28 </script>
     29 </pre>
     30 </body>
     31 </html>