title: Getting blank screenshot using html2canvas in Angular
body: <p>In the component file I have:</p>
  <pre class="lang-js prettyprint-override"><code>const video = &lt;HTMLVideoElement&gt; this.videoElement.nativeElement;
  html2canvas(video, { 
    logging: true,
    allowTaint: false,
    useCORS: true,
  })
  .then((canvas) =&gt; {
    const file = canvas.toDataURL('image/png');
    this.imageFile = this.dataURLtoFile(file, 'image.png');
  });
  </code></pre>