Is there a way I can prevent a UIWebView
from playing sound even if the website it is loading plays sound? I want to provide a mute feature in my custom browser.
Asked
Active
Viewed 550 times
1
-
I don't think that's possible. – SoundShock Jan 06 '17 at 10:49
-
this answer your question http://stackoverflow.com/a/37315071/5251783 – Hosny Apr 20 '17 at 13:15
1 Answers
0
Set these Parameters to your Webview
self.webView.allowsInlineMediaPlayback = YES;
self.webView.mediaPlaybackRequiresUserAction = NO;

Sagar Shirbhate
- 801
- 7
- 17