valarpirai/video-chat-app

Capture Frames from HTML

Raj123456788 opened this issue · 0 comments

I have a virtual webcam installed on Win 10 and I am using this project link to get the remote webrtc stream.

My goal is instead of sending the stream to video element I need to send it to my virtual driver.

So here is the html element

setTheirVideo : function (stream) {
var video = document.getElementById('their-video');
if (typeof video.srcObject == "object") {
video.srcObject = stream;
} else {
video.src = URL.createObjectURL(stream);
}
},
Where & How would I set the stream to be sent to the driver API instead of HTML Element? for example:
MyDriver.SetData(stream);

Please let me know how can I achieve this?