Welcome Guest Search | Active Topics | Sign In | Register

Disable WebRTC in Preferences Options
rainstuff
Posted: Wednesday, February 13, 2019 6:13:04 AM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 72
Hi! In CefSharp, based on Chromium I can set flags to disable webrtc:

this.webBrowser1.GetBrowser().GetHost().RequestContext.SetPreference("webrtc.multiple_routes_enabled",false,out error);
this.webBrowser1.GetBrowser().GetHost().RequestContext.SetPreference("webrtc.ip_handling_policy","disable_non_proxied_udp",out error);
It is standart flags, integrated in chromium.

For examaple, to set Proxy:
this.webBrowser1.GetBrowser().GetHost().RequestContext.SetPreference("proxy", (object) dictionary, out error);

I've found Proxy preferences in Runtime.DefaultEngineOptions.Proxy, but nothing for WebRTC.

There is no commandline switch with the same functionality and the only way - to set it in preferences.
How can I do that in EO Webbrowser?


eo_support
Posted: Wednesday, February 13, 2019 3:35:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

I do not believe there is any equivalent of this in the current version. We will look into this and see if we can expose this in a future version.

Thanks!
rainstuff
Posted: Thursday, February 14, 2019 2:45:48 AM
Rank: Advanced Member
Groups: Member

Joined: 9/20/2016
Posts: 72
Ok.
Thank you!
ppasha
Posted: Friday, March 5, 2021 3:28:52 AM
Rank: Newbie
Groups: Member

Joined: 3/5/2021
Posts: 1
Hi,

I am looking for a .net based browser. For me it is important to disable WebRTC. Does Your product allow this?

Thanks!
eo_support
Posted: Friday, March 5, 2021 11:06:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

There is no way for you to disable WebRTC directly. However you can deny camera/microphone access by handling this event:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.requestpermissions.aspx

And then call Deny in your event handler to deny the permission.

Thanks!


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.