tor-browser

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

test_peerConnection_twoAudioTracksInOneStream.html (1061B)


      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: "1145407",
     11    title: "Multistream: Two audio tracks in one stream"
     12  });
     13 
     14  runNetworkTest(function (options) {
     15    const test = new PeerConnectionTest(options);
     16    test.chain.insertAfter("PC_REMOTE_GET_OFFER", [
     17        function PC_REMOTE_OVERRIDE_STREAM_IDS_IN_OFFER(test) {
     18          test._local_offer.sdp = test._local_offer.sdp.replace(
     19              /a=msid:[^\s]*/g,
     20              "a=msid:foo");
     21        }
     22    ]);
     23    test.chain.insertAfter("PC_LOCAL_GET_ANSWER", [
     24        function PC_LOCAL_OVERRIDE_STREAM_IDS_IN_ANSWER(test) {
     25          test._remote_answer.sdp = test._remote_answer.sdp.replace(
     26              /a=msid:[^\s]*/g,
     27              "a=msid:foo");
     28        }
     29    ]);
     30    test.setMediaConstraints([{audio: true}, {audio: true}],
     31                             [{audio: true}, {audio: true}]);
     32    return test.run();
     33  });
     34 </script>
     35 </pre>
     36 </body>
     37 </html>