tor-browser

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

1594466.html (568B)


      1 <html>
      2 <head>
      3 <script>
      4 function start() {
      5  const ac = new AudioContext();
      6  const {stream: audioStream} = ac.createMediaStreamDestination();
      7  const [audioTrack] = audioStream.getTracks();
      8  const canvas = document.createElement("canvas");
      9  const ctx = canvas.getContext("2d");
     10  const [videoTrack] = canvas.captureStream().getTracks();
     11 
     12  const rec = new MediaRecorder(new MediaStream([audioTrack, videoTrack]), {
     13    mimeType: 'video/webm; codecs="vp8, opus"'
     14  });
     15  rec.start();
     16 }
     17 
     18 document.addEventListener('DOMContentLoaded', start)
     19 </script>
     20 </head>
     21 </html>