I don't know what exactly I do wrong, but I can't run flash on multi_process_mode. I have very big application (MyApp.exe) that using CEF3 (branch 2623) + CAPI, OS - Win 7.
1) I can copy and renamed MyApp.exe into MyAppSub.exe, run MyApp.exe with following settings:
single_process_mode = 1,
browser_subprocess_path = MyAppSub.exe,
+ add switches "ppapi-flash-path" and "ppapi-flash-version",
and all works good - flash loaded successfully! More than that I have two process with diffent names "MyApp.exe" and "MyAppSub.exe". But It's not multi_process_mode and I think that it's not goot idea to use copy of MyApp for subprocess.
2) I can do new Application for subprocess (MyAppSub2.exe). I have that simple code where:
- Code: Select all
#pragma hdrstop
#pragma comment(lib, "libcef")
#include "cef_base.h"
#include "cef_app.h"
#include "cef_client.h"
int _tmain(int argc, _TCHAR* argv[])
{
cef_main_args_t mainArgs = {0};
cef_app_t app = {0};
mainArgs.instance = GetModuleHandle(NULL);
initialize_app_handler(&app);
return cef_execute_process(&mainArgs, &app, NULL);
}
If I run MyApp.exe with following settings:
single_process_mode = 0,
browser_subprocess_path = MyAppSub2.exe,
+ add switches "ppapi-flash-path" and "ppapi-flash-version",
and all will work good. All, except flash. At first, in the place, where the flash must be, appered message "Could't load Plugin" and after I reloaded page 3-5 times, appeared message "adobe flash player needs your permission to run". If I choose "run this plugin" - nothing will happen.