I tried that but it still doesn't work.
What's mean "when it is explicitly allowed via content settings" ?
plugins.run_all_flash_in_allow_mode = true
plugins.allow_outdated = true
profile.default_content_setting_values.plugins = 1
profile.managed_default_content_settings.plugins = 1
profile.content_settings.exceptions.plugins = {}
profile.managed_plugins_allowed_for_urls = ["https://*", "http://*"]
profile.managed_plugins_blocked_for_urls = []
webkit.webprefs.plugins_enabled = true
plugins.plugins_enabled = []
plugins.plugins_disabled = []
plugins.plugins_disabled_exceptions = []
--plugin-policy=(allow|detect|block)
--allow-outdated-plugins
--disable-plugins
jebi wrote:https://bitbucket.org/chromiumembedded/cef/issues/2768/allow-flash-to-play-without-user
I find out that setting profile.default_content_setting_values.plugins to 1 in request context preferences (SetPreference) allow Flash plugin to run without user interaction
Czarek wrote:Just for the future, all of the preferences that can affect Flash:
- Code: Select all
plugins.run_all_flash_in_allow_mode = true
plugins.allow_outdated = true
profile.default_content_setting_values.plugins = 1
profile.managed_default_content_settings.plugins = 1
profile.content_settings.exceptions.plugins = {}
profile.managed_plugins_allowed_for_urls = ["https://*", "http://*"]
profile.managed_plugins_blocked_for_urls = []
webkit.webprefs.plugins_enabled = true
plugins.plugins_enabled = []
plugins.plugins_disabled = []
plugins.plugins_disabled_exceptions = []
And switches:
- Code: Select all
--plugin-policy=(allow|detect|block)
--allow-outdated-plugins
--disable-plugins
edgardog wrote:Czarek wrote:Just for the future, all of the preferences that can affect Flash:
- Code: Select all
plugins.run_all_flash_in_allow_mode = true
plugins.allow_outdated = true
profile.default_content_setting_values.plugins = 1
profile.managed_default_content_settings.plugins = 1
profile.content_settings.exceptions.plugins = {}
profile.managed_plugins_allowed_for_urls = ["https://*", "http://*"]
profile.managed_plugins_blocked_for_urls = []
webkit.webprefs.plugins_enabled = true
plugins.plugins_enabled = []
plugins.plugins_disabled = []
plugins.plugins_disabled_exceptions = []
And switches:
- Code: Select all
--plugin-policy=(allow|detect|block)
--allow-outdated-plugins
--disable-plugins
Can someone point me in the right direction on how to change the preferences?
I'm able to change the switches like --allow-outdated-plugins .. I'm just not sure how to set profile.default_content_setting_values.plugins = 1
What should I edit on cefclient to get this working?
Thanks
CefRequestContextSettings rcsettings;
auto request_content = CefRequestContext::CreateContext(rcsettings, new ClientRequestContextHandler);
CefString error;
CefRefPtr<CefValue> value = CefValue::Create();
value->SetInt(1);
request_content->SetPreference("profile.default_content_setting_values.plugins", value, error);
CefBrowserHost::CreateBrowser(window_info,
handler,
url,
browser_settings,
nullptr,
request_content);
args = new String[]{
"--enable-system-flash=true",
"--plugin-policy=allow",
"--ppapi-flash-path=\"C:\\Users\\ylan1\\AppData\\Local\\Google\\Chrome\\User Data\\PepperFlash\\32.0.0.303\\pepflashplayer.dll\"",
"--ppapi-flash-version=32.0.0.303"
};
CefRequestContext requestContext = null;
// CefRequestContext requestContext = CefRequestContext.getGlobalContext();
CefBrowser browser = client_.createBrowser(
"http://www.google.com", osrEnabled, transparentPaintingEnabled, requestContext);
CefRequestContextSettings rcsettings;
auto request_content = CefRequestContext::CreateContext(rcsettings, new ClientRequestContextHandler);
CefString error;
CefRefPtr<CefValue> value = CefValue::Create();
value->SetInt(1);
request_content->SetPreference("profile.default_content_setting_values.plugins", value, error);
CefBrowserHost::CreateBrowser(window_info,
handler,
url,
browser_settings,
nullptr,
request_content);
Return to Feature Request Forum
Users browsing this forum: No registered users and 28 guests