I am currently trying to build a WebRTC-based application using MediaStream to capture the computer screen and save it to a video file. I have it working, BUT, now I am trying to add an additional layer to the recorded video so that the Web Camera appears.
As far as I understand, with the Media Streams API, I cant use two Video sources at the same time. So I decided to draw the captured video to a Canvas element and layer the Web Camera on that, and get the stream from the Canvas. But I am having issues and can't get it working
What I am trying to build is something like what Loom has, with the desktop capture and the web camera layered on-top in a circle.
I would like to know if I am heading in the right direction If you were to build something like this, how would you approach it?