Cefsharp: Allow flash plugin

Created on 12 Jan 2020  路  3Comments  路  Source: cefsharp/CefSharp

Allow plugin policy not work for flash
CefSettings.CefCommandLineArgs.Add("plugin-policy", "allow");
or

        public bool OnBeforePluginLoad(string mimeType, string url, bool isMainFrame, string topOriginUrl, WebPluginInfo pluginInfo, ref PluginPolicy pluginPolicy)
        {
            pluginPolicy = PluginPolicy.Allow;
            return true;
        }

CEF 79 dev WindowForm Win10

known-issue upstream wontfix

Most helpful comment

Thank you!
solution for issue

CefSettings.CefCommandLineArgs.Add("plugin-policy", "allow");
...
var contx = Cef.GetGlobalRequestContext();
Cef.UIThreadTaskFactory.StartNew(delegate
{
  contx.SetPreference("profile.default_content_setting_values.plugins", 1, out string err);
});

All 3 comments

It's important to note that CefSharp is just a wrapper around the Chromium Embedded Framework (CEF). Closing this as upstream and as changes need to be made in CEF.

The CEF project has it's own issue tracker located at https://bitbucket.org/chromiumembedded/cef it is recommended you ask on https://magpcss.org/ceforum/index.php before opening an issue on the CEF issue tracker.

Looks like there's already https://bitbucket.org/chromiumembedded/cef/issues/2768/allow-flash-to-play-without-user and https://magpcss.org/ceforum/viewtopic.php?f=7&t=17068

Please search the CEF issue tracker and forum before opening any further issues.

Thank you!
solution for issue

CefSettings.CefCommandLineArgs.Add("plugin-policy", "allow");
...
var contx = Cef.GetGlobalRequestContext();
Cef.UIThreadTaskFactory.StartNew(delegate
{
  contx.SetPreference("profile.default_content_setting_values.plugins", 1, out string err);
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdc20181 picture jdc20181  路  4Comments

29683747 picture 29683747  路  7Comments

richmondwang picture richmondwang  路  6Comments

marci4 picture marci4  路  4Comments

zhuangpearl picture zhuangpearl  路  4Comments