Welcome Guest Search | Active Topics | Sign In | Register

Disable WebRTC feature through ExtraCommandLineArgs Options
T. Ward
Posted: Tuesday, March 29, 2022 12:16:41 PM
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?
eo_support
Posted: Thursday, March 31, 2022 5:22:37 PM
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!
T. Ward
Posted: Friday, April 1, 2022 10:00:51 AM
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.
T. Ward
Posted: Friday, April 1, 2022 10:32:46 AM
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.
eo_support
Posted: Saturday, April 2, 2022 7:23:46 PM
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.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.