WKWebView
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
config.allowsInlineMediaPlayback = YES;
config.mediaPlaybackRequiresUserAction = false;
wkWebView=[[WKWebView alloc] initWithFrame:rect configuration:config];
wkWebView.UIDelegate=self;
wkWebView.navigationDelegate=self;
UIWebVIew
[self.webView setMediaPlaybackRequiresUserAction:NO];