w3c / mediacapture-screen-share

Media Capture Screen Capture specification
https://w3c.github.io/mediacapture-screen-share/
Other
86 stars 28 forks source link

Multiple Windows are shared and the previous window is overwritten by the latest window #302

Open trookie2000 opened 5 months ago

trookie2000 commented 5 months ago

In my program, each process is shared individually via getDisplayMedia() and controlled remotely by emulation of keyboard and mouse events. image image

But there is a problem, when I control window 1 remotely, if window 1 is overwritten by window 2, then actions (like mouse clicks) in window 1 will completely fail

Is there a way to place the shared video window at the top of my desktop when I click the full screen of a video, similar to z-index

trookie2000 commented 5 months ago

The red rectangular box is the part of window 2 covering window 1, in which case the operation of remote control window 1 being covered will fail