delphi - 如何将 Delphi Chromium Embedded (TChromium) 组件的声音静音?

标签 delphi tchromium

我需要将 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/

相关文章:

regex - 组件 Tperlregex fatal error L3169?

delphi - 在 Delphi 中打开 rtf 文件产生错误

delphi - Chrome : How to keep session alive

delphi - 使 TChromium 渲染抗锯齿

Delphi 10 Seattle - VCL 样式的 Vista 对话框错误

delphi - 如何在 Delphi 可执行文件中嵌入二进制文件并在运行时提取?

delphi - 更改 Chromium Embedded 3 (DCEF3) (CefVCL) 中的用户代理

delphi - 从 Chromium 嵌入式框架 3 打印

javascript - Delphi Chromium Embedded (TChromium) - 获取脚本输出

.net - delphi prism (.net) 编译器