Is it possible to turn off sounds only in one browser ?
not by js(element.volume =0).
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?
- salvadordf
- Posts: 4572
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Is it possible to turn off sounds only in one browser?
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.
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.
Re: Is it possible to turn off sounds only in one browser?
Thank you very much! I got it.
Code: Select all
browser.Host.IsAudioMuted
browser.Host.SetAudioMuted(false )