Android Question Disable WebView Sound

German Buchmuller

Member
Licensed User
Longtime User
Hi, is it possible to disable the sound played by an html loaded in a WebView? Thanks!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
If you are loading a specific page then you might be able to inject JavaScript to disable the sounds. Another option is to mute the correct channel with Phone.SetMute. Make sure to use Try / Catch with SetMute as it will throw an exception if the Do Not Distribute option is enabled (unless you handle the special permission).
 
Upvote 0

German Buchmuller

Member
Licensed User
Longtime User
Great, how can I inject Javascript code on the webpage im showing? In addition, my webpage autosaves progress once webpage is closed. I need to somehow get the WebView know that the user minimized the App or closed it. How can I make it? Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…