且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使Delphi Chromium Embedded(TChromium)组件的声音静音?

更新时间:2022-02-28 00:42:31

我成功使用了以下代码:

I have succeeded with the following code:

procedure CustomCommandLine (const processType: ustring; const commandLine: ICefCommandLine);
begin
    commandLine.AppendSwitch('--mute-audio');
end;    


begin
    CefOnBeforeCommandLineProcessing := CustomCommandLine;

    Application.Initialize;
    Application.CreateForm(TMainForm, MainForm);
    Application.Run;
end.

其他参数:
示例