Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported [Solved]

Link to the original text: failed to execute ‘todataurl’ on ‘htmlcanvaselement’: tainted canvases may not be exported [solved]

JS distinguish right and left mouse button click

Next: pyhook3 installation and keyboard and mouse monitoring demo

The questions are as follows

When taking a video shot, draw the content of the video tag into canvas and report an error

 

Solutions

When the DOM is loaded and before playing, set the properties

Setting properties during playback has no effect

  let v = document.getElementById('xpc_video')
  v.setAttribute('crossorigin', 'Anonymous')

 

Similar Posts: