So I did some minor digging.
First of all,CefBrowserHostImpl::RequestMediaAccessPermission(
https://github.com/chromiumembedded/cef ... l.cc#L2433 )
is never invoked, when you pass in --enable-media-stream and --use-fake-ui-for-media-stream flag. I verified it using debugger.
So most probably, we somehow end up in chromium code here :
https://cs.chromium.org/chromium/src/co ... c42&l=1183and the default screen is selected here :
https://cs.chromium.org/chromium/src/co ... 2149&l=203Now, getDisplayData spec doesn't allow you to specify the screen/window/monitor you want in constraints. So I don't see how we can get a specific window/screen to be shared when using both --enable-media-stream and --use-fake-ui-for-media-stream flags.
@marshall, is my above understanding correct?
Also, I am curious to know, what's the current limitation in CEF which prevents us from showing a popup window to select screen/window etc similar to chrome ?