Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few ways to resolve this issue:

  1. Use the Chrome tab capture API instead of navigator.mediaDevices.getDisplayMedia. This API allows you to capture only the current tab as a media stream.

  2. Enable the "Tab Capture" flag in Chrome. This flag enables the Chrome tab capture API and allows you to capture only the currently active tab. To enable the flag, type "chrome://flags" in the URL bar and search for "Tab Capture".

  3. Use a screen recording software that allows you to select the specific application window you want to capture. This will give you more control over what you want to capture and will not be affected by the limitations of the navigator.mediaDevices.getDisplayMedia API.