Detecting if another tab is sharing screen on client's browser, and stopping them from sharing

577 Views Asked by At

Generally, with a webcam, if a browser tab, or a desktop app is using the webcam, other sources cannot use that webcam until the first app stops.

In a similar way is it possible to detect if there is a screen already being shared in another tab while my web app also tries to share a screen?

If so, is there a way to terminate that other stream before starting mine?

0

There are 0 best solutions below