This commit is contained in:
bekannax
2025-05-29 19:39:39 +07:00
parent 087f6943a8
commit 6bad77723e

View File

@@ -163,6 +163,9 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
let config = WKWebViewConfiguration()
config.userContentController = contentController
config.preferences = preferences
config.mediaPlaybackRequiresUserAction = false
config.allowsInlineMediaPlayback = true
var frame = UIScreen.main.bounds
if parent != nil && parent?.view != nil && parent?.view.bounds != nil {
@@ -631,4 +634,4 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
open func getContactsCallback(_ data: NSDictionary) {
}
}
}