webrtc captureStream from canvas and capture audio from video

Viewed 1609

In my project I have a video displayed. On top of the video there is a canvas where some object are drawn. Therefore the video is overlayed with some drawings. Now I want to download the video file including the drawings. I am using the webrtc mediaRecorder. I am drawing the video to a canvas on window.requestAnimationFrame. My exported video looks good but there is no audio from the video because I captured the canvas. Is it possible to capture the audio from the video and add it to the canvasStream? I also recorded the videostream including the audio but then I dont have my drawings on top of it. Any suggestions?

1 Answers
Related