Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Run Flash
-
- Posts: 25
- Joined: Thu Sep 21, 2017 4:33 pm
Run Flash
Hello Salvador. Do you know if it is possible to enable flash execution in version 85.3.12.0?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Run Flash
Yes, it should be possible if you install the Adobe Flash Player PPAPI plugin and set GlobalCEFApp.FlashEnabled to TRUE before the GlobalCEFApp.StartMainProcess call in the DPR file.
However, Adobe announced that it's no longer supported and they even recommend uninstalling it.
https://www.adobe.com/products/flashplayer/end-of-life.html
Google also annouced that they will stop supporting it in Chromium 88 which will be released in a few days :
https://www.chromium.org/flash-roadmap
However, Adobe announced that it's no longer supported and they even recommend uninstalling it.
https://www.adobe.com/products/flashplayer/end-of-life.html
Google also annouced that they will stop supporting it in Chromium 88 which will be released in a few days :
https://www.chromium.org/flash-roadmap
Re: Run Flash
Hi does cef4 reads mms.cfg to enable the flash domain and play the flash?
is it anyway to play a flash game?
is it anyway to play a flash game?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Run Flash
CEF4Delphi is only a CEF wrapper and it doesn't read the mms.cfg file.
I also searched that file name in the CEF and Chromium sources and I couldn't find it.
I guess the Adobe Flash plugin is the only one reading it.
Yes. You can play flash games if you install the Adobe Flash plugin.
I also searched that file name in the CEF and Chromium sources and I couldn't find it.
I guess the Adobe Flash plugin is the only one reading it.
Yes. You can play flash games if you install the Adobe Flash plugin.
Re: Run Flash
But i have installed the flash ppapi and everything else in my pc.
Does cef4 with delphi can play a page with flash embed?
but appliction crash
also i have this in project view
Does cef4 with delphi can play a page with flash embed?
Code: Select all
Chromium1BeforePluginLoad
if (CompareText(mimeType, 'application/x-shockwave-flash') = 0) then
begin
pluginPolicy := PLUGIN_POLICY_ALLOW;
aResult := True;
exit;
end;
also i have this in project view
Code: Select all
procedure CreateGlobalCEFApp;
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.LogFile := 'debug.log';
GlobalCEFApp.LogSeverity := LOGSEVERITY_INFO;
GlobalCEFApp.cache := 'cache';
GlobalCEFApp.EnablePrintPreview := True;
GlobalCEFApp.FlashEnabled :=true;
GlobalCEFApp.DisableFeatures := 'WinUseBrowserSpellChecker';
end;
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Run Flash
I did a quick test with the simplebrowser2 demo on Windows 10.
I only added this line in the DPR file :
Then I navigated to this website to check if Flash was installed correctly :
https://helpx.adobe.com/flash-player.html
I already had the PPAPI Adobe Flash Player plugin installed in Windows and that page detected it.
Then I searched for some flash games and I could play for a while. Some websites are showing some warnings about Chrome no longer supporting flash but other games worked fine.
For example :
https://www.minijuegos.com/juego/ludo-hero
Perhaps the code in the TChromium.OnBeforePluginLoad is the cause of this issue.
I only added this line in the DPR file :
Code: Select all
GlobalCEFApp.FlashEnabled := True;
https://helpx.adobe.com/flash-player.html
I already had the PPAPI Adobe Flash Player plugin installed in Windows and that page detected it.
Then I searched for some flash games and I could play for a while. Some websites are showing some warnings about Chrome no longer supporting flash but other games worked fine.
For example :
https://www.minijuegos.com/juego/ludo-hero
Perhaps the code in the TChromium.OnBeforePluginLoad is the cause of this issue.
Re: Run Flash
Thanks for your reply
I get error Flash is out of date i try your example i only added
GlobalCEFApp.FlashEnabled := True;
on simplewebbrowser2
is not working
also BriskBard browser is not working is it any possible to make BriskBard work with flash in feature?
I get error Flash is out of date i try your example i only added
GlobalCEFApp.FlashEnabled := True;
on simplewebbrowser2
is not working
also BriskBard browser is not working is it any possible to make BriskBard work with flash in feature?
Re: Run Flash
Adobe slipped a pig in the latest versions of flash, so you need to roll back the date on your computer or install older flash version. At the moment, it is more reliable not to use the system flash, but to put pepperflash.dll to the application directory and specify in the code
To automatically start flash specify this
Code: Select all
GlobalCEFApp.FlashEnabled := false;
GlobalCEFApp.CustomFlashPath := ExtractFilePath(Application.ExeName);
Code: Select all
chromium1.AlwaysAuthorizePlugins := true;
chromium1.AllowOutdatedPlugins := true;
chromium1.RunAllFlashInAllowMode := true;
Re: Run Flash
Thank you so much for helping me but i have only pepflashplayer32_32_0_0_380.dll inside c:\windows\system32\macromed\flash\ directory
anyway to give me the peperflash.dll? or you mean pepflashplayer32_32_0_0_380.dll because i did follow your code but i still getting right click to enable flash but right click is not working.
anyway to give me the peperflash.dll? or you mean pepflashplayer32_32_0_0_380.dll because i did follow your code but i still getting right click to enable flash but right click is not working.
Re: Run Flash
If you have a 32 bit application use this dll
https://dllsearch.ru/ru/dll/pepflashplayer32_32_0_0_238.dll
For 64-bit app use this dll
https://dllsearch.ru/ru/dll/pepflashplayer64_32_0_0_238.dll
I checked them on my computer, they work well. Just from the official site is no longer available to download, so I give these links.
https://dllsearch.ru/ru/dll/pepflashplayer32_32_0_0_238.dll
For 64-bit app use this dll
https://dllsearch.ru/ru/dll/pepflashplayer64_32_0_0_238.dll
I checked them on my computer, they work well. Just from the official site is no longer available to download, so I give these links.