Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mute the sound of a Delphi Chromium Embedded (TChromium) component?

I need to mute the sound of a TChromium component to make a silent browser. The main problem is on Windows XP where when I mute the sound of a browser, it mute the overall system sound.

Is there a way how to mute the sound of a TChromium component ?

like image 834
Junior Miguel Vieira Avatar asked Jan 25 '13 02:01

Junior Miguel Vieira


1 Answers

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.

Other parameters: Examples

like image 74
Junior Miguel Vieira Avatar answered Oct 23 '22 22:10

Junior Miguel Vieira