Add flash player plugin (NPAPI/PPAPI)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Add flash player plugin (NPAPI/PPAPI)

Postby Guillaume49 » Fri May 27, 2016 8:08 am

Hi,

I want to integrate a flash player plugin in my CEF application. --ppapi-flash-path="full_path", this working but I won't use a console line.

I already try :
const std::string x86Path ="full_path";
CefString plugin(x86Path);
CefAddWebPluginPath(plugin);
CefRefreshWebPlugins();
But this work only with a NPAPI plugin.

My problem is : I want find a NPAPI flash player plugin OR find a code for integrate a PPAPI plugin.

Thanks ;)

Information :
OS : Windows 7
Version : Adapted version of CEF3.2623
Software : qt 5.5.1


PS: Sorry for my english
Guillaume49
Newbie
 
Posts: 3
Joined: Fri May 27, 2016 4:36 am

Re: Add flash player plugin (NPAPI/PPAPI)

Postby fddima » Fri May 27, 2016 12:19 pm

You can modify command line (add switches) in CefApp.OnBeforeCommandLineProcessing.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Add flash player plugin (NPAPI/PPAPI)

Postby Guillaume49 » Mon May 30, 2016 2:16 am

I think that your solution will resolve my problem, but i don't know use CefApp.OnBeforeCommandLineProcessing.

How use this method?
Thanks
Guillaume49
Newbie
 
Posts: 3
Joined: Fri May 27, 2016 4:36 am

Re: Add flash player plugin (NPAPI/PPAPI)

Postby amaitland » Mon May 30, 2016 2:27 am

In your CefApp implementation override OnBeforeCommandLineProcessing

Check out the cefclient and cefsimple projects in the source for examples
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Add flash player plugin (NPAPI/PPAPI)

Postby Guillaume49 » Mon May 30, 2016 2:58 am

Thank, it's working :

void CefClientApp::OnBeforeCommandLineProcessing(const CefString &process_type, CefRefPtr<CefCommandLine> command_line)
{
command_line->AppendSwitchWithValue("ppapi-flash-path","pepflashplayer.dll");
}

How, i set the forum to resolved ?
Guillaume49
Newbie
 
Posts: 3
Joined: Fri May 27, 2016 4:36 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 83 guests