Page 1 of 1

Cefglue, mono and flash

PostPosted: Thu Oct 06, 2016 12:22 pm
by Kayote
I have a C# application that opens up a flash file in a browser and I would like to get it working with Mono so I can get it running on Linux too.
First I'm trying to get it working on Windows. So far, when I open it up normally, it works. But when I run it with mono, it opens up but on the page it says "Plugin couldn't be loaded" and I'm really not sure what the problem is, so I was hoping someone here could help me.

Re: Cefglue, mono and flash

PostPosted: Thu Oct 06, 2016 7:59 pm
by fddima
I'm can reccomend start tests with cefclient and get it working on linux first, then going to cefglue/mono stuff. In general about flash i'm cant't help, because never use it. Hope someone give you pointers.

Re: Cefglue, mono and flash

PostPosted: Thu Oct 06, 2016 11:10 pm
by magreenblatt
Flash needs to be loaded via the command-line on Linux. See https://bitbucket.org/chromiumembedded/ ... t-16939505

Re: Cefglue, mono and flash

PostPosted: Fri Oct 07, 2016 1:46 pm
by Kayote
Thanks for the fast replies. So right now I'm just trying to get it to open on Linux.

When I run a cef application on Linux I get the following error:

[1007/204123:ERROR:context.cc(266)] Not implemented reached in bool CefContext::Initialize(const CefMainArgs &, const CefSettings &, CefRefPtr<CefApp>, void *)multi_threaded_message_loop is not supported.

Unhandled Exception:
System.InvalidOperationException: Failed to initialize CEF runtime.
at Xilium.CefGlue.CefRuntime.Initialize (Xilium.CefGlue.CefMainArgs args, Xilium.CefGlue.CefSettings settings, Xilium.CefGlue.CefApp application, System.IntPtr windowsSandboxInfo)

I have tried searching around but found no solution to this problem, so I was hoping someone here could tell me what I am doing wrong.

Re: Cefglue, mono and flash

PostPosted: Fri Oct 07, 2016 1:51 pm
by fddima
Multi threaded message loop is windows only.

Re: Cefglue, mono and flash

PostPosted: Fri Oct 07, 2016 2:20 pm
by Kayote
Thanks!

But now, after moving many of the cef resources to the right path, I am stuck at this when I try to run it:

Unknown command line option: '--type=zygote'
Aborted (core dumped)