Hi,
When I was testing MiniBrowser, I found that the program would automatically add the command line switch --no-sandbox, and I used GlobalCEFApp.NoSandbox:= False.
GlobalCEFApp.NoSandbox:= True;
These settings do not help.
The plug-in for flash is also used:
GlobalCEFApp.AddCustomCommandLine ('--ppapi-flash-path', ExtractFilePath (Application.ExeName) +'PepperFlash\pepflashplayer32.dll');
GlobalCEFApp.AddCustomCommandLine ('--ppapi-flash-version','28.0.0.126');
It was found that flash was unable to work, and I think it was due to the --no-sandbox switch.
Flash Debug hints:
TypeError: Error #1009: Cannot access a property or method of a null
At com.youku.plugins.report.view:: FlashCookie/UvidLoadSet ()
At com.youku.plugins.report.view:: FlashCookie ()
At com.youku.plugins.report.view:: ReportMediator/initIR ()
At com.youku.plugins.report.view:: ReportMediator ()
At com.youku.plugins.report:: ReportFacade/init ()
At com.youku.controls:: ReportController/init ()
At com.youku.controls:: ReportController ()
At com.youku:: FacadeManager/initPlugins ()
At com.youku:: FacadeManager/init ()
At com.youku:: PlayerShell/init ()
At com.youku:: PlayerShell/initPlayer ()
At com.youku:: PlayerLoader/onPlayerLoadComplete ()
Ask how to solve this Flash problem and how to delete the --no-sandbox switch, thank you.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
How to delete the default command line switch
-
- Posts: 18
- Joined: Sun Jan 07, 2018 1:08 am
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: How to delete the default command line switch
Hi,
Add GlobalCEFApp.CustomFlashPath := 'PepperFlash'; before the GlobalCEFApp.StartMainProcess call and remove the GlobalCEFApp.AddCustomCommandLine lines.
GlobalCEFApp should detect and load the pepflashplayer32.dll library automatically.
The NoSandbox property is unrelated to your problem. You should set it to True only if you find a way to import the cef_sandbox.lib file into a delphi application.
Add GlobalCEFApp.CustomFlashPath := 'PepperFlash'; before the GlobalCEFApp.StartMainProcess call and remove the GlobalCEFApp.AddCustomCommandLine lines.
GlobalCEFApp should detect and load the pepflashplayer32.dll library automatically.
The NoSandbox property is unrelated to your problem. You should set it to True only if you find a way to import the cef_sandbox.lib file into a delphi application.
-
- Posts: 18
- Joined: Sun Jan 07, 2018 1:08 am
Re: How to delete the default command line switch
The Flash problem has been solved. I set up the specified path for Cookies and Cache, and Flash can work properly.
GlobalCEFApp.Cookies:='y:\';
GlobalCEFApp.Cache:='y:\';
It does have nothing to do with NoSandbox. Thank you very much for your help.
GlobalCEFApp.Cookies:='y:\';
GlobalCEFApp.Cache:='y:\';
It does have nothing to do with NoSandbox. Thank you very much for your help.