• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

VR mode (stereo mode) is not working in an Android WebView for a 360 degree video

I am trying to load the following URL in an Android Webview

URL : http://storage.net-fs.com/hosting/2727323/5/index.htm

The following is the output in a WebView

2iVjT.jpg


When clicked on the VR button from top right, I am expecting the below. Which when turned to landscape, plays the video in Stereo mode. This is Working fine as expected, when opened the url in Google Chrome(mobile).

tnrwv.jpg
z9tzW.jpg


But for me, the video is not playing in VR mode(stereo mode). The following is shown when clicked on VR button.

nNhdN.jpg


This is my code
Java:
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");

Please help me out in this.
 
Did you solve your problem?

I have the same problem. The double vision isn't working.

I appreciate any help.
 

Attachments

  • device-2018-09-19-184754.png
    device-2018-09-19-184754.png
    1.3 MB · Views: 155
Back
Top Bottom