zoukankan      html  css  js  c++  java
  • cesharp 完美支持flash

    直接上代码:

    cefSettings.CefCommandLineArgs.Add("enable-npapi", "1");
    
                //cefSettings.CefCommandLineArgs.Add("enable-system-flash", "1");
                //Flash
                var flashFile = System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "PepperFlash", "pepflashplayer.dll");
                if (System.IO.File.Exists(flashFile))
                { 
                    cefSettings.CefCommandLineArgs.Add("ppapi-out-of-process","1"); 
                    //Load the pepper flash player that comes with Google Chrome - may be possible to load these values from the registry and query the dll for it's version info (Step 2 not strictly required it seems)
                    cefSettings.CefCommandLineArgs.Add("ppapi-flash-path", flashFile); //Load a specific pepper flash version (Step 1 of 2)
                    cefSettings.CefCommandLineArgs.Add("ppapi-flash-version", "99.0.0.999"); //Load a specific pepper flash version (Step 2 of 2)
                }
    

      

  • 相关阅读:
    五,系统操作命令说明
    三,linux系统的由来
    二,服务器磁盘阵列(raid)
    一服务器硬件介绍
    四,元组类型
    集合类型
    字典类型
    三,列表类型
    二,字符串类型
    一,数字类型
  • 原文地址:https://www.cnblogs.com/tianciliangen/p/11102508.html
Copyright © 2011-2022 走看看