I'm using MediaDevices.getDisplayMedia() to record user's screen.
In theory, I can't narrow the choices from JS ...
The specified constraints can't be used to limit the options available to the user. Instead, they must be applied after the user chooses a source, in order to generate output that matches the constraints.
but, somehow Google Meet does it (Windows + Chrome)? But how?
I've tried
{
video: {
displaySurface: 'application' | 'browser' | 'monitor' | 'window'
}
}
but I always get the dialog window with all the options.
I would like to have it working at least on Chrome.
