下载了这个 
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怎么开启这个

解决方案 »

  1.   

    command_line->AppendSwitch("--enable-npapi"); 
    这个是CB代码吧,如果是的话:
    command_line.AppendSwitch('--enable-npapi'); 
      

  2.   


    大哥 command_line  这个要应用哪个东西啊
      

  3.   

    xilium.cefglue是支持C#语言的库或框架,Delphi应该使用delphichromiumembedded。我用chrome.exe试了一下,启动时传参数可以修改设置,但是不会保存设置。其他参数测试的,传这个参数的写法是:ShellExecute(handle, 'open','chrome.exe','--enable-npapi',nil, SW_SHOWNORMAL);引用ShellAPI。'chrome.exe的路径可能需要修改。如果能这么用以上作为参考。
      

  4.   


    大哥能不能在程序里面来弄这个'--enable-npapi'啊
      

  5.   

    大哥能不能在程序里面来弄这个'--enable-npapi'啊
    使用delphichromiumembedded时的写法是:uses ceflib;
    procedure CustomBeforeCommandLineProc(const processType: ustring; const commandLine: ICefCommandLine);
    begin
         commandLine.AppendSwitch('--enable-npapi');
    end;
    //在需要初始化的地方指定:
    CefOnBeforeCommandLineProcessing:=CustomBeforeCommandLineProc;