Flash player

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.

Flash player

Postby rotolino » Thu Mar 03, 2011 10:16 am

Hello,
I know chrome uses a special pre-installed version of the flash player. Can I make cef use the same player if available?

Thanks in advance.
rotolino
Mentor
 
Posts: 68
Joined: Sun Dec 26, 2010 10:22 am

Re: Flash player

Postby magreenblatt » Thu Mar 03, 2011 10:47 am

CEF can use the Google chrome flash plugin if you register the plugin directory using CefSettings.extra_plugin_paths. See issue 130 for more information.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Flash player

Postby rotolino » Fri Mar 11, 2011 8:14 am

If I set settings.extra_plugin_paths to chrome path the program crashes at CefInitialize.
What can I do?
rotolino
Mentor
 
Posts: 68
Joined: Sun Dec 26, 2010 10:22 am

Re: Flash player

Postby greenh8 » Fri Mar 11, 2011 8:39 am

what about the chrome pdf plugins, pdf.dll? would that work the same way (legality aside - I believe its not legal to redistribute that pdf.dll).

-g8
greenh8
Newbie
 
Posts: 3
Joined: Wed Feb 16, 2011 2:39 pm

Re: Flash player

Postby magreenblatt » Fri Mar 11, 2011 9:07 am

@rotolino: How are you setting the value and what CEF revision are you using?

@greenh8: The PDF plugin uses PPAPI which is not currently supported by CEF. See this discussion from chromium-dev: http://groups.google.com/a/chromium.org ... d425a0026d
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Flash player

Postby rotolino » Fri Mar 11, 2011 11:47 am

It was a problem in the code (I hadn't checked what actually is settings.extra_plugin_paths)
Current code:

Code: Select all
cef_string_t sExtraPath;
    memset(&sExtraPath, 0, sizeof(cef_string_t));

    wstring wExtraPath;
    GetChromePath(&wExtraPath);

    settings.extra_plugin_paths = cef_string_list_alloc();
    CefString(&sExtraPath).FromWString(wExtraPath);
    cef_string_list_append(settings.extra_plugin_paths, &sExtraPath);


It's not working yet (my browser can't see Chrome's flash player).
Any idea? Thanks.
rotolino
Mentor
 
Posts: 68
Joined: Sun Dec 26, 2010 10:22 am

Re: Flash player

Postby rotolino » Sun Mar 13, 2011 11:55 am

Making a private copy of gcswf32.dll, renaming it to NPSWF32.dll and passing the path to this file to CEF doesn't help too. What can I do?
rotolino
Mentor
 
Posts: 68
Joined: Sun Dec 26, 2010 10:22 am

Re: Flash player

Postby magreenblatt » Mon Mar 14, 2011 3:01 pm

You probably need to debug plugin loading. Set a break point in BrowserWebViewDelegate::CreatePluginDelegate and trace the logic.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Flash player

Postby perrstep » Mon Apr 04, 2011 5:11 pm

Hi everybody, I have the same issue. Is there a resolution to this?

Thanks
Steph.
perrstep
Techie
 
Posts: 25
Joined: Thu Nov 18, 2010 6:02 pm

Re: Flash player

Postby intoinside » Tue Apr 12, 2011 6:16 am

i don't understand the what can be the problem, i found that some video can be played but other not.

This video is played correctly: http://www.youtube.com/watch?v=ovivii38 ... =topvideos

This video isn't played (but audio is ok): http://www.youtube.com/watch?v=Y4h8uOUC ... ure=relmfu

I'm using cef with off-screen rendering active without any particular plugin installed (like gcswf32.dll etc...)

any ideas?
intoinside
Techie
 
Posts: 14
Joined: Wed Mar 16, 2011 7:35 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 21 guests