|
Rank: Newbie Groups: Member
Joined: 3/29/2022 Posts: 3
|
I'm trying to disable a specific WebRTC feature. I can disable it in the Chrome browser in the chrome://flags screen. It is called #enable-webrtc-hide-local-ips-with-mdns. Setting this to Disabled in Chrome has the behavior I need.
I found a posting on the Chromium Embedded Forum that says it can be disabled using "--disable-features=WebRtcHideLocalIpsWithMdns".
I tried doing this by using WebEngine.Options.ExtraCommandLineArgs = "--disable-features=WebRtcHideLocalIpsWithMdns". This does not seem to have any affect. Any suggestions?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, What version do you use? We tested ExtraCommandLineArgs on the latest build and it seems to be working correctly. We tested with TabbedBrowser sample application by adding the following code into App.xaml.cs Right before creating the MainWindow:
Code: C#
EO.WebEngine.EngineOptions.Default.ExtraCommandLineArgs = "--disable-features=WebRtcHideLocalIpsWithMdns";
Can you try that and let us know if it works for you? Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/29/2022 Posts: 3
|
My application is a Windows form application. I'm using EO version 21.2.70.0. I use several browser controls in the application, and I've put this line in several different places to change the setting. It looks like it has to be done when the first engine is created - I think I tried that but I will try again.
|
|
Rank: Newbie Groups: Member
Joined: 3/29/2022 Posts: 3
|
This is now working for me. The difference was setting the flag in the Default.ExtraCommandLineArgs before the first engine was created instead of the specific engines' ExtraCommandLineArgs. Thank you.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Thanks for the update. Yes. You would need to set it before the engine is created.
|
|