我正在尝试在Android Webview中加载以下网址
网址:http://storage.net-fs.com/hosting/2727323/5/index.htm
以下是WebView中的输出
点击右上方的VR按钮后,我期待以下内容。在转向横向时,以立体声模式播放视频。在Google Chrome(移动设备)中打开网址时,这可以正常运行。
但对我来说,视频不是在VR模式下播放(立体声模式)。单击VR按钮时会显示以下内容。
这是我的代码
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webSettings.setLoadsImagesAutomatically(true);
webSettings.setDomStorageEnabled(true);
webSettings.setUseWideViewPort(true);
webSettings.setAllowFileAccess(true);
webSettings.setAllowUniversalAccessFromFileURLs(true);
if (Build.VERSION.SDK_INT > 16) {
webSettings.setMediaPlaybackRequiresUserGesture(false);
}
webView.setWebChromeClient(new WebChromeClient());
webView.loadUrl("http://storage.net-fs.com/hosting/2727323/5/index.htm");
请帮帮我。