Flash

957 views
Skip to first unread message

Albert-Jan Pieter Nijburg

unread,
Mar 28, 2012, 4:20:14 AM3/28/12
to cefs...@googlegroups.com
Hi is there a way I can use flash in cefsharp without installing chrome?

Thanks

Evgeniy Polyakov

unread,
Mar 28, 2012, 10:19:44 AM3/28/12
to cefs...@googlegroups.com
Yes. By default CefSharp can use Flash Plugin for Other Browsers (Firefox, Opera).
But there some problems with Flash:
1. Transparency doesn't work in WPF version 
2. Flash loaders can't work with files more than 999999 bytes.

anthony taranto

unread,
Mar 28, 2012, 2:50:22 PM3/28/12
to cefs...@googlegroups.com
Example code:

var settings = new CefSharp.Settings();
settings.AddPluginPath(@".\path\to\flash.dll");
CEF.Initialize(settings);

You can use either NPSWF32.dll (Adobe) or gcswf32.dll (Google). To see where these dlls reside on your system, access the "about:plugins" URL in chrome.

--Anthony

Jake Katz

unread,
Oct 14, 2012, 9:00:01 PM10/14/12
to cefs...@googlegroups.com
I've followed these steps to initialize the plugin, but if I try to relocate the dll to another location besides its default install (e.g. C:\Windows\SysWOW64\Macromed\Flash), the plugin fails to load.  It seems that CEF might be ignoring the new location specified in the settings.  Here's how I initialize:

            var settings = new CefSharp.Settings();
            settings.AddPluginPath(@"./NPSWF32.dll");
            
            CEF.Initialize(settings);
            BrowserSettings bSettings = new BrowserSettings();
            bSettings.PluginsDisabled = false;
            webView = new WebView("", bSettings);

Any thoughts?

Jake Katz

unread,
Oct 14, 2012, 9:11:09 PM10/14/12
to cefs...@googlegroups.com
My apologies. When using the full path to the plugin, I was able to load it just fine.  Must have been a relative path issue or the loader does not support relative paths.

Munirah Kamaluddin

unread,
Apr 25, 2014, 4:13:30 PM4/25/14
to cefs...@googlegroups.com
hi,i know this post is too old.I'm a newbie for cefSharp. Can someone help me how to install flash to cefSharp?
Thanks!
Reply all
Reply to author
Forward
0 new messages