【发布时间】:2020-06-25 10:32:30
【问题描述】:
在我的 webview 中,视频无法全屏显示。当我在例如 youtube 视频上按下全屏按钮时,chrome 控制台显示以下错误。
Uncaught (in promise) TypeError: fullscreen error
系统
Android 10
Chrome version: 83.0.4103.106
应用配置
compileSdkVersion 28
defaultConfig {
minSdkVersion 22
targetSdkVersion 28
}
webviewSettings.setJavaScriptEnabled(true);
webviewSettings.setDomStorageEnabled(true);
webviewSettings.setSupportMultipleWindows(false);
webviewSettings.setJavaScriptCanOpenWindowsAutomatically(false);
该错误与此错误Bug 945287 有关,但它应该在我的版本中得到修复。在 web 视图中全屏显示嵌入视频是否需要任何其他设置?
【问题讨论】:
标签: android webview html5-video