Commit d66c9f58 authored by Steven杜宇's avatar Steven杜宇

//. AI

parent f8680631
...@@ -30,9 +30,9 @@ class YHH5WebViewVC: YHBaseViewController, WKUIDelegate, WKNavigationDelegate { ...@@ -30,9 +30,9 @@ class YHH5WebViewVC: YHBaseViewController, WKUIDelegate, WKNavigationDelegate {
// Fallback on earlier versions // Fallback on earlier versions
} }
#endif #endif
// config.allowsInlineMediaPlayback = true config.allowsInlineMediaPlayback = true
// /// 开启让自动播放 /// 开启让自动播放
// config.mediaTypesRequiringUserActionForPlayback = [] config.mediaTypesRequiringUserActionForPlayback = []
let webview = DWKWebView(frame: .zero, configuration: config) let webview = DWKWebView(frame: .zero, configuration: config)
webview.scrollView.contentInsetAdjustmentBehavior = .never webview.scrollView.contentInsetAdjustmentBehavior = .never
webview.navigationDelegate = self webview.navigationDelegate = self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment