Monday, 3 October 2022

How to make my C code recognized as a video source / webcam by Chrome browser?

I'm working on a C code which output video frames in realtime, which is eventually built as a DLL file:

int get_frame() {
    // generate video frame
}

Are there specific functions to export in the DLL such that it can be used in Chrome as a video source, and if so, how to load this DLL into Chrome?

How to get this code recognized as a video source / webcam in Chrome, such that I can integrate it in a HTML page containing a <video> element?

navigator.mediaDevices.getUserMedia({ video: true }).then(stream => { $("#cam").srcObject = stream; });

enter image description here



from How to make my C code recognized as a video source / webcam by Chrome browser?

No comments:

Post a Comment