Muting website sound programmatically

I have a desktop application that has a web browser control built in. I search and iterate over the search list and display it in the built-in browser.

My problem is that some of the sites automatically play video sounds (ActiveX) that play sounds.

Is there a way to turn off these sounds before displaying a website?

+3
source share
1 answer

AFAIK, there is no easy setup that does this. Your possibilities are to turn off sounds in the system or simply delete such things from a document. In the event, DocumentCompletedyou can get the internal html and supplant any nested tags. The disadvantage of this is that it is not 100% reliable (does not prevent the use of any embeddings using javascript).

If any embed or javascript based sound is controlled in javascript, you can try introducing your own javascript to stop it or prevent it. Not sure how well javascript works with activex.

+1
source

All Articles