我需要将 TChromium
组件静音以创建静音浏览器。主要问题是在 Windows XP 上,当我将浏览器的声音静音时,它会静音整个系统的声音。
有没有办法让 TChromium
组件静音?
最佳答案
我已经成功地使用了以下代码:
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.
其他参数: Examples
关于delphi - 如何将 Delphi Chromium Embedded (TChromium) 组件的声音静音?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14514606/