Earlier, camera stream was allowed only if "--enable-media-stream" switch is passed.
Do we have any switch or flag available to disable media stream explicitly in M128? Basically, I am looking for earlier behaviour with chrome style in M128.
TIA.
Details below:
I updated cef libs from 126.0.6478.127 to 128.0.6613.120
I am using customized cefsimple app in windows. I have conditionally handled “enable-media-stream” in OnBeforeCommandLineProcessing(), something like this:
- Code: Select all
void CefPlayerApp::OnBeforeCommandLineProcessing() {
if (CEFCMDLINE_ENABLE_MEDIA_STREAM) {
commandLine->AppendSwitch("enable-media-stream");
}
}
After CEF upgrade to 128.0.6613.120 libs, I am able to access camera stream, even if I test https://webrtc.github.io/samples/src/co ... media/gum/ without ‘—enable-media-stream” switch to cefsimple.
This is not expected. We are supposed to get local camera stream only if “‘—enable-media-stream” switch is passed.
Before upgrade, it was working properly with 126.0.6478.127 libs, and throwing below error if “‘—enable-media-stream” switch is not passed to cefsimple.
NotAllowedError: Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.
getUserMedia error: NotAllowedError
Is there any change in M128 related to ‘—enable-media-stream” switch that I need to incorporate in my cefsimple?
Or do we have any switch/flag to explicitly disable media stream?
Also, I tested with 128.0.6613.120 cefsimple and cefclient. I am seeing same problematic behaviour with cefsimple, however cefclient works fine.
Cefclient allows to access camera stream only if “‘—enable-media-stream” switch is passed to it, otherwise it gives “NotAllowedError”
Looks like, this is handled in cefclient but not in cefsimple. Can someone please help with required changes to fix this issue in cefsimple?