muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.52k stars 1.75k forks source link

Recording a canvas element that is transparent #682

Open millzee01 opened 3 years ago

millzee01 commented 3 years ago

Hi,

I have a div called "content", and in this div i have a canvas called "my screen" that is filled with a transparent png image. This allows me to see a video element that is placed under the "my screen" canvas.

When I record the "content" div element using html2canvas, I can see what i draw on the "my screen" canvas however the canvas background is black which stops the video from showing.

Is there a way I can tell html2canvas that the element i am recording has a transparent canvas?