Page 1 of 1

右键单击"运行此插件"以播放闪光灯

Posted: Tue May 05, 2020 7:27 am
by lovemit
How can I turn on direct play?
Thank You !
run this plugin.png

右键单击"运行此插件"以播放闪光灯

Posted: Tue May 05, 2020 7:37 am
by lovemit
Use new version of cef4。
How can I turn on direct play?
Thank You !
run this plugin.png

Re: 右键单击"运行此插件"以播放闪光灯

Posted: Tue May 05, 2020 9:50 am
by salvadordf
Hi,

You need to install the PPAPI Adoge Flash Plugin following these instructions :
https://www.briskbard.com/index.php?lang=en&faqitem=208

Then set these properties in your application to run the plugin automatically :

Code: Select all

GlobalCEFApp.FlashEnabled := True;
GlobalCEFApp.AutoplayPolicy := appNoUserGestureRequired;
Adobe will stop supporting that plugin in a few months :
https://support.microsoft.com/en-us/hel ... of-support

* :" "

Posted: Tue May 05, 2020 10:36 am
by lovemit
These two lines of code are added to view source
Flash still can't play automatically

-----------------------------------------------------------------------------------------------------

Code: Select all

begin
  CreateGlobalCEFApp;
  GlobalCEFApp.FlashEnabled := True;
  GlobalCEFApp.AutoplayPolicy:=appNoUserGestureRequired;
  // Internal_OnBeforeCommandLineProcessing
  // You *MUST* call GlobalCEFApp.StartMainProcess in a if..then clause
  // with the Application initialization inside the begin..end.
  // Read this https://www.briskbard.com/index.php?lang=en&pageid=cef
  if GlobalCEFApp.StartMainProcess then
  begin
    Application.Initialize;
    Application.CreateForm(TSimpleFMXBrowserFrm, SimpleFMXBrowserFrm);
    Application.Run;

    SimpleFMXBrowserFrm.Free;
  end;

  DestroyGlobalCEFApp;

end.


Re: 右键单击"运行此插件"以播放闪光灯

Posted: Tue May 05, 2020 11:00 am
by salvadordf
I'm sorry I forgot to say that you may have to add TChromium.RunAllFlashInAllowMode := True; before the TChromium.CreateBrowser call.

Re: 右键单击"运行此插件"以播放闪光灯

Posted: Tue May 05, 2020 11:09 am
by lovemit
Thank you very much. This is really OK.