android: black background in call (#4098)

This commit is contained in:
Stanislav Dmitrenko
2024-04-27 00:31:52 +07:00
committed by GitHub
parent e675efe6f3
commit 7f2462c936
@@ -689,6 +689,7 @@ fun WebRTCView(callCommand: SnapshotStateList<WCallCommand>, onResponse: (WVAPIM
this.clearHistory()
this.clearCache(true)
this.addJavascriptInterface(WebRTCInterface(onResponse), "WebRTCInterface")
this.setBackgroundColor(android.graphics.Color.BLACK)
val webViewSettings = this.settings
webViewSettings.allowFileAccess = true
webViewSettings.allowContentAccess = true