Page 1 of 1

--enable-media-stream switch is not responding

PostPosted: Thu Oct 31, 2019 2:43 am
by mathics
Hi,
I am trying to give --enable-media-stream switch for the program that I am building using jcef. I am tried to turn on switch with the following cases:
Code: Select all
        settings.windowless_rendering_enabled = useOSR;
        settings.command_line_args_disabled = false;
        String[] args = new String[]{
                "--enable-media-stream=true"
               // "--enable-media-steam",
               // "enable-media-stream", "1"
        };

        cefApp = CefApp.getInstance(args, settings);

Program gives [1031/094701.279:INFO:CONSOLE(0)] "Uncaught (in promise) NotAllowedError: Permission denied", source: theUrl error in every cases.
However, camera is allowed if I run *.jar app from commandline with: "java -jar appName.jar --enable-media-stream" command.
What might be the issue here?
Thanks in advance.

Re: --enable-media-stream switch is not responding

PostPosted: Tue Nov 05, 2019 4:25 am
by Czarek
Try adding the switch via CefAppHandlerAdapter::onBeforeCommandLineProcessing callback.