tor-browser

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

webm-alpha-capture.html (697B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <meta charset="utf-8">
      4 <title>Test that if a WebM video has an alpha channel, it is displayed correctly when captured.</title>
      5 <script>
      6 async function runTest() {
      7  const v = document.createElement("video");
      8  document.body.appendChild(v);
      9  const vout = document.createElement("video");
     10  document.body.appendChild(vout);
     11  v.preload = "auto";
     12  v.src = "webm-alpha.webm";
     13  await new Promise(r => v.onloadeddata = r);
     14  vout.srcObject = v.mozCaptureStream();
     15  v.play();
     16  await new Promise(r => vout.onloadeddata = r);
     17  document.documentElement.removeAttribute("class");
     18 }
     19 </script>
     20 <body style="background:grey;" onload="runTest()">
     21 </body>
     22 </html>