I'm using Xilium.CEF v. 2357.1291 and I need to show Flash inside browser control.
I've tried argument --enable-system-flash with installed adobe flash player v.19 for Opera and Chrome (ppapi) but it had no effect.
I'm actually writing plugin for windows forms app, which opens window with browser inside. I'm using my own subprocess executable, so i can regiter my custom JS handlers inside browser process.
Custom subprocess executable have this simple code:
- Code: Select all
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
WebkitConfigSection webkitConfig = ConfigurationLoader.LoadConfiguration();
var loggerFactory = new DefaultLoggerFactory();
CefSettings settings = configuration.GetCefSettingsOrDefault();
V8Handler[] handlers = configuration.LoadV8Handlers(runInSubProcess, loggerFactory).ToArray();
CefApp application = new RuntimeApp(handlers);
var arguments = new CefMainArgs(new string[]
{
"--enable-media-stream",
"--enable-system-flash",
});
int code = CefRuntime.ExecuteProcess(arguments, Application, IntPtr.Zero);
}
}
Am I forgetting something? Could someone please provide an example of working Windows Forms app with working flash inside?