tor-browser

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

iframe-MediaStreamTrack-transfer.html (465B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>iframe</title>
      5    <script>
      6      function onMsg(e) {
      7        if(e.data instanceof MediaStreamTrack) {
      8          parent.postMessage({result: 'Success'});
      9        } else {
     10          parent.postMessage({
     11            result: 'Failure',
     12            error: `${e.data} is not a MediaStreamTrack`
     13          });
     14        }
     15      }
     16      window.addEventListener("message", onMsg);
     17    </script>
     18  </head>
     19  <body>
     20  </body>
     21 </html>