Using chrome, a call to
navigator.mediaDevices.getDisplayMedia()
will forcibly focus whatever it is you chose, either a tab or window.
This is not very user friendly given my particular use-case of wanting to stream multiple tabs, as you would have to renavigate to the particular tab that calls this api every time you start a new stream.
Is there any way to get around this barring automatic tab refocusing after media selection?
A chrome api solution is welcome since I am making a chrome extension.