资源简介
CEF3的2016整合版本,output包含了所有所需的必要dll,解决加载flash动画闪现命令框问题;增加下载模块;整合之前未上传的控件源码;增加MP3、MP4支持;并更新了tabcontrol,增加关闭按钮;重新写了右键菜单;启用NPAPI以及PPAPI功能,只需将对应的动态库拷贝到对应文件夹,其中NPAPI拷贝到plugins文件夹,PPAPI拷贝到PepperFlash文件夹;
代码片段和文件信息
namespace Xilium.CefGlue
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Text;
using Xilium.CefGlue.Interop;
public static unsafe class CefRuntime
{
private static readonly CefRuntimePlatform _platform;
private static bool _loaded;
private static bool _initialized;
static CefRuntime()
{
_platform = DetectPlatform();
}
#region Platform Detection
private static CefRuntimePlatform DetectPlatform()
{
var platformId = Environment.OSVersion.Platform;
if (platformId == PlatformID.MacOSX)
return CefRuntimePlatform.MacOSX;
int p = (int)platformId;
if ((p == 4) || (p == 128))
return IsRunningOnMac() ? CefRuntimePlatform.MacOSX : CefRuntimePlatform.Linux;
return CefRuntimePlatform.Windows;
}
//From Managed.Windows.Forms/XplatUI
private static bool IsRunningOnMac()
{
IntPtr buf = IntPtr.Zero;
try
{
buf = Marshal.AllocHGlobal(8192);
// This is a hacktastic way of getting sysname from uname ()
if (uname(buf) == 0)
{
string os = Marshal.PtrToStringAnsi(buf);
if (os == “Darwin“)
return true;
}
}
catch { }
finally
{
if (buf != IntPtr.Zero)
Marshal.FreeHGlobal(buf);
}
return false;
}
[DllImport(“libc“)]
private static extern int uname(IntPtr buf);
public static CefRuntimePlatform Platform
{
get { return _platform; }
}
#endregion
///
/// Loads CEF runtime.
///
///
///
///
public static void Load()
{
Load(null);
}
///
/// Loads CEF runtime from specified path.
///
///
///
///
public static void Load(string path)
{
if (_loaded) return;
if (!string.IsNullOrEmpty(path))
{
if (Platform == CefRuntimePlatform.Windows)
LoadLibraryWindows(path);
else
throw new PlatformNotSupportedException(“CEF Runtime can‘t be initialized on altered path on this platform. Use CefRuntime.Loa
相关资源
- ControlFLASH
- 2048 flash 小游戏源码
- 自己做的一个连连看,带源码flashCS
- FlashMediaLiveEncoder3.2_with_AAC(key)
- 高中数学flash课件集141个)(下)1
- 高中数学flash课件集141个)(上)2
-
.Actionsc
ript.3.0.Game.Programming.Universi - flash学习视频资料
- cef3.rar 支持delphiXE 10.2
- 安防虚拟摄像头模拟工具
- SP_Flash_Tool_exe_Windows_v5.2016.00.000.zip
- 计算机组成原理 第四版 白中英 科
- 1191170125_严伟_音视频实验3 (.zip
- FMS4.5破解版流媒体服务器FlashMediaSer
- CiscoASA 5520防火墙flash文件系统恢复步
- AD封装库 常用音视频类封装
- Flash 5.0 (内含序列号)
- 中广互动flash源码
- flashas3拼图游戏源码
-
QT开发flashpla
yer播放器 - QFlash_V4.3 移远网卡固件烧写工具 内
- flash做电子相册
- Flash CS6 简体中文语言包
- FLASH个人简历模板
- cef_binary_3.2623.1395.g3034273_windows32
- 支持MP3的最后支持XP的CEF3版本2623
- NAND Flash Memory Technologies-Wiley (2015)
- vue+video.js-contrib-hls.js+Video.js+m3u8&flas
- 8个flash课件及源码打包
- flash_loader_demo_v2.7.0
评论
共有 条评论