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.

Is it possible to turn off sounds only in one browser?

Post Reply
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Is it possible to turn off sounds only in one browser?

Post by coater »

Is it possible to turn off sounds only in one browser ?
not by js(element.volume =0).
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Is it possible to turn off sounds only in one browser?

Post by salvadordf »

Use TChromium.AudioMuted := True

If I remember correctly, that property can only be read in some CEF threads but you can write it in any thread.
Use the code in the MiniBrowser to see how to implement it.
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: Is it possible to turn off sounds only in one browser?

Post by coater »

Thank you very much! I got it.

Code: Select all

browser.Host.IsAudioMuted
 browser.Host.SetAudioMuted(false ) 
Post Reply