embiem / react-canvas-draw

React Component for drawing in canvas
https://embiem.github.io/react-canvas-draw/
MIT License
904 stars 315 forks source link

CaptureStream to Video #24

Closed muhdusman closed 5 years ago

muhdusman commented 5 years ago

Hi, I have successfully embed the plugin and its working very well But I want to integrate it with webrtc solutions, for that I need to convert output of canvas to video through capturestream, but I am unable to do that Any help would be highly appreciated. Thnx again

santosh898 commented 5 years ago

for now this module does'nt support capturestream out of the box, because it uses 4 canvas elements stacked up(cursor,drawing,live drawing,background). But you can create a hidden canvas and write all 4 canvas data for every window.requestAnimationFrame(callback) and stream it.

embiem commented 5 years ago

Thanks @santosh898 for answering.