右键单击"运行此插件"以播放闪光灯
Posted: Tue May 05, 2020 7:27 am
How can I turn on direct play?
Thank You !
Thank You !
The forum for BriskBard users and CEF4Delphi / WebView4Delphi / WebUI4Delphi / WebUI4CSharp developers
http://www.briskbard.com/forum/
Code: Select all
GlobalCEFApp.FlashEnabled := True;
GlobalCEFApp.AutoplayPolicy := appNoUserGestureRequired;
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.