I suggest you using html2canvas library instead. It will make the screenshot only of the current window. You cannot do this via Screen Capture Api. https://html2canvas.hertzen.com/