tor-browser

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

1028458.html (822B)


      1 <html class="reftest-wait">
      2 <audio id="testAudio" controls></audio>
      3 <script type="text/javascript">
      4 navigator.mediaDevices.getUserMedia({audio: true, fake: true}).then(function(stream) {
      5    stream.getAudioTracks()[0].enabled = false;
      6    var testAudio = document.getElementById('testAudio');
      7    // Wait some time for good measure
      8    var eventReceived = 0;
      9    testAudio.addEventListener("timeupdate", function() {
     10      if (++eventReceived == 3) {
     11        document.querySelector("html").className = "";
     12      }
     13    })
     14    testAudio.srcObject = stream;
     15    testAudio.play();
     16    }, function(err) {
     17      // Don't go orange if we can't get an audio input stream,
     18      // as this is not what we are trying to test and can happen on Windows.
     19      document.querySelector("html").className = "";
     20    });
     21 </script>
     22 
     23 </html>