I was working on screen capture API and created some little projects about this. My question is, can I capture a custom HTML div instead of capturing tabs, windows or screens?
This is the code part that I used for capturing screen.
captureStream = await navigator.mediaDevices.getDisplayMedia();
const video = document.createElement("video");
video.id = "vid";
addVideoStream(video, captureStream);
Thanks!