下載了這個
http://download.csdn.net/download/cyl19921030/9400290
但是這個版本CefAddWebPluginPath('D:\PepperFlash\pepflashplayer.dll'); 這個命令已經沒用了,
老版本的說明檔案上這么說:
“
3.2357版本之前,直接添加plugins目錄到exe的同級目錄,然后將flash插件dll放到plugins目錄里就可以了。但是從3.2357之后的版本用同樣的方式,卻不能正常加載flash插件,原因是chromium從42之后就不默認支持NPAPI了(3.2357使用的chromium是43),如果需要支持的話,需要通過command line設定“--enable-npapi”。設定之后就可以支持了。
command_line->AppendSwitch("--enable-npapi");
”
delphi 要怎么運行這個command_line->AppendSwitch("--enable-npapi"); 啊
求大神指導一下,delphi怎么開啟這個
uj5u.com熱心網友回復:
command_line->AppendSwitch("--enable-npapi");這個是CB代碼吧,如果是的話:
command_line.AppendSwitch('--enable-npapi');
uj5u.com熱心網友回復:
大哥 command_line 這個要應用哪個東西啊
uj5u.com熱心網友回復:
xilium.cefglue是支持C#語言的庫或框架,Delphi應該使用delphichromiumembedded。我用chrome.exe試了一下,啟動時傳引數可以修改設定,但是不會保存設定。其他引數測驗的,傳這個引數的寫法是:ShellExecute(handle, 'open','chrome.exe','--enable-npapi',nil, SW_SHOWNORMAL);參考ShellAPI。'chrome.exe的路徑可能需要修改。如果能這么用以上作為參考。uj5u.com熱心網友回復:
大哥能不能在程式里面來弄這個'--enable-npapi'啊
uj5u.com熱心網友回復:
使用delphichromiumembedded時的寫法是:
uses ceflib;
procedure CustomBeforeCommandLineProc(const processType: ustring; const commandLine: ICefCommandLine);
begin
commandLine.AppendSwitch('--enable-npapi');
end;
//在需要初始化的地方指定:
CefOnBeforeCommandLineProcessing:=CustomBeforeCommandLineProc;
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/59148.html
標籤:網絡通信/分布式開發
