在我的webview中,视频无法显示全屏。当我按下YouTube视频上的全屏按钮时,Chrome控制台显示以下错误。
错误与此错误相关:Bug 945287,但应该在我的版本中得到修复。是否还需要其他设置才能在 webview 中全屏显示嵌入式视频?
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,但应该在我的版本中得到修复。是否还需要其他设置才能在 webview 中全屏显示嵌入式视频?