tor-browser

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

single_peerconnection.html (504B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head><meta charset="UTF-8"></head>
      4 <body>
      5 <div id="Page that opens a single peerconnection"></div>
      6 <script>
      7  let test = async () => {
      8    let pc = new RTCPeerConnection();
      9    pc.addTransceiver('audio');
     10    pc.addTransceiver('video');
     11    await pc.setLocalDescription();
     12    await new Promise(r => {
     13      pc.onicegatheringstatechange = () => {
     14        if (pc.iceGatheringState == "complete") {
     15          r();
     16        }
     17      };
     18    });
     19  };
     20  test();
     21 </script>
     22 </body>
     23 </html>