How do you turn off all the sounds of a Webbrowser?

Asked

Viewed 108 times

0

Is there a command to disable all sounds of a WebBrowser in Visual Basic 2008? I would like to let it mute so it doesn’t touch the sounds of Youtube videos.

1 answer

1

I do not think it is feasible to directly control the Youtube player by its language, because Flash technology runs in an isolated environment within the page. You could even do some sort of reverse engineering, but it would certainly be risky and possibly not portable between different versions.

However, there is a way to communicate with the flash through Javascript and maybe you can use to achieve this purpose. If the film is embedded on the page through the official method using a iframe, you can use the Youtube Player API to control the movie. So simply inject a script with the code on your page player.mute() and will have the expected result.

However, if the video is added by another method this will not work. An alternative is to download the entire PC volume using the Operating System API.

  • and how can I do that ?

  • pq I am using Vb 2008, and can I add the script to webbrowser? I don’t understand very well, if you can explain it better I thank you very much

Browser other questions tagged

You are not signed in. Login or sign up in order to post.