Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Mute sound without GlobalCEFApp

Post Reply
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Mute sound without GlobalCEFApp

Post by thefunkyjoint »

I know i can mute audio by using

GlobalCEFApp.MuteAudio := true

But this is before calling GlobalCEFApp.StartMainProcess.

Is there a way to mute the audio after you already called GlobalCEFApp.StartMainProcess, without having to recreate your browsers ?
User avatar
salvadordf
Posts: 4059
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Mute sound without GlobalCEFApp

Post by salvadordf »

Use TChromiumCore.ToggleAudioMuted or set the TChromiumCore.AudioMuted property.

The MiniBrowser demo uses them.
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Re: Mute sound without GlobalCEFApp

Post by thefunkyjoint »

Thanks, it worked ! :D
Post Reply