Detecting missing plugins

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.

Detecting missing plugins

Postby dreijer » Sat Mar 23, 2013 6:50 pm

I know CefRequestHandler::OnBeforePluginLoad exists, but is there a callback that tells me when a certain plugin fails to load? For instance, I'd like to show an informative message to the user if Flash isn't installed on his machine and the current webpage requires it.
dreijer
Expert
 
Posts: 201
Joined: Mon Apr 11, 2011 10:09 pm

Re: Detecting missing plugins

Postby magreenblatt » Mon Mar 25, 2013 12:15 pm

We don't currently have a notification for this. If the web content handles missing flash correctly (by providing a "download flash" link, for example) then you could intercept the download link request and handle it differently in your application. You could also use JavaScript to scan the page contents to see if a Flash object is embedded.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Detecting missing plugins

Postby dreijer » Mon Mar 25, 2013 6:40 pm

Right, I'll probably go the JavaScript route. Thanks.
dreijer
Expert
 
Posts: 201
Joined: Mon Apr 11, 2011 10:09 pm


Return to Support Forum

Who is online

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