tor-browser

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

test_peerConnection_basicAudioVideoNoRtcpMux.html (1204B)


      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: "1167443",
     11    title: "Basic audio & video call 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    test.chain.replace("PC_LOCAL_VERIFY_SDP_AFTER_END_OF_TRICKLE", [
     20      function PC_LOCAL_REQUIRE_SDP_AFTER_END_OF_TRICKLE(test) {
     21        return test.pcLocal.endOfTrickleSdp .then(sdp =>
     22          sdputils.checkSdpAfterEndOfTrickle(sdp, test.testOptions, test.pcLocal.label));
     23      }
     24    ]);
     25    test.chain.replace("PC_REMOTE_VERIFY_SDP_AFTER_END_OF_TRICKLE", [
     26      function PC_REMOTE_REQUIRE_SDP_AFTER_END_OF_TRICKLE(test) {
     27        return test.pcRemote.endOfTrickleSdp .then(sdp =>
     28          sdputils.checkSdpAfterEndOfTrickle(sdp, test.testOptions, test.pcRemote.label));
     29      }
     30    ]);
     31    test.setMediaConstraints([{audio: true}, {video: true}],
     32                             [{audio: true}, {video: true}]);
     33    return test.run();
     34  });
     35 </script>
     36 </pre>
     37 </body>
     38 </html>