cesharp 完美支持flash
2024-10-20 05:52:04
直接上代码:
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)
}
最新文章
- C预定义宏
- MySQL——保证数据的完整性
- paip.快捷方式分组管理最佳实践ObjectDock
- 【Java 基础篇】【第十课】多态
- BZOJ 2115 Xor(抑或值最大路径)
- Delphi-idHttp-JSON用法
- 从MVC到前后端分离
- python摇骰子猜大小的小游戏
- bzoj 1193
- MIDle生命周期详解,以及工作原理
- SQL高级查询基础
- Python练手例子(6)
- Oracle 11g 单实例到单实例OGG同步实施文档-EXPDP初始化
- Docker 引擎(三)
- 彻底弄懂JS事件委托的概念和作用
- 解决 web.xml is missing and <;failOnMissingWebXml>; is set to true 报错
- 在sublime3中docblockr插件配置apidoc接口文档注释模板
- Java指定保留小数位数的方法
- RMAN概述及其体系结构
- AC日记——「SCOI2015」情报传递 LiBreOJ 2011
热门文章
- 谈谈OAuth1,OAuth2异同
- 串口通信编程向导 Serial Programming Guide for POSIX Operating Systems
- oracle删除表空间和用户
- Kubernetes网络之Flannel工作原理
- 使用Arduino开发板和ESP8266从互联网读取数据
- Android Binder机制彻底梳理一
- selenium+python自动化99-清空输入框clear()失效问题解决
- Python 爬虫js加密破解(三) 百度翻译 sign
- apscheduler 执行报错No handlers could be found for logger ";apscheduler.executors.default
- python_并发编程——数据共享