Welcome Guest Search | Active Topics | Sign In | Register

AdditionalPluginsDirs missing Options
Stefan Koell
Posted: Tuesday, February 15, 2022 5:14:59 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
Hi,

just upgraded to the latest version of the WebBrowser and it seems that the property AdditionalPluginsDirs is missing:
https://www.essentialobjects.com/doc/eo.webengine.engineoptions.additionalpluginsdirs

Regards,
Stefan
eo_support
Posted: Tuesday, February 15, 2022 9:53:01 AM
Rank: Administration
Groups: Administration

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

This property is no longer needed because there are only two plugins supported: PDF and Widevine. PDF plugin is built-in. This property was needed for Widevine in older versions but v22 can automatically download Widevine from Google. So it is not necessary to have Widevine binaries on disk before your app starts.

Since downloading Widevine takes time, we do have the option to have Widevine downloaded in advance on disk. In that case you would set EngineOptions.PreinstalledPluginsDir. This property is very similar to AdditionalPluginsDirs but the contents structure in that directory is different than what AdditionalPluginsDirs requires. This is why we changed the property name so that the user will be aware of the change at compile time. You can find the updated documenation for this property here:

https://www.essentialobjects.com/doc/webbrowser/advanced/plugin#widevine

Thanks!
Stefan Koell
Posted: Tuesday, February 15, 2022 10:01:07 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
Thanks for the clarification.

Regards,
Stefa
Stefan Koell
Posted: Wednesday, February 16, 2022 5:29:16 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
One more questions regarding plugins in general: There's the BrowserOptions "AllowPlugins" property:
https://www.essentialobjects.com/doc/eo.webengine.browseroptions.allowplugins

and the EngineOptions "DisableBuiltInPlugins" property:
https://www.essentialobjects.com/doc/eo.webengine.engineoptions.disablebuiltinplugins

The docs are a bit thin and I'm wondering what exactly the difference is between those two. It seems they do the same...

Thanks,
Stefan
eo_support
Posted: Thursday, February 17, 2022 7:24:22 PM
Rank: Administration
Groups: Administration

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

These are pretty much the same but on different level. DisableBuiltInPlugins would disable plugin on the engine level. So if you only have one default engine as in most cases, then setting this property once would disable plugins for the entire application. AllowPlugins on the other hand is a per WebView setting.

Thanks!
Stefan Koell
Posted: Friday, February 18, 2022 2:04:55 AM
Rank: Advanced Member
Groups: Member

Joined: 12/23/2013
Posts: 114
Thanks for the clarification. This makes the whole plugin handling much easier for me ;)

Regards,
Stefan
eo_support
Posted: Friday, February 18, 2022 9:53:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
You are very welcome and glad to hear that!


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.