【问题标题】:aframe is not showing in webview androidaframe 未在 webview android 中显示
【发布时间】:2020-03-15 22:04:52
【问题描述】:

我正在尝试在 webview 中加载 https://aframe.io/aframe/examples/boilerplate/panorama/,但它没有显示出来。如果我在移动浏览器中加载相同的 url,它会正确加载。我使用 android 版本 24 和 redmi k20 pro 物理设备的像素 2 虚拟设备进行了测试。在这两种情况下,它都没有加载。

我的代码是这样的,

WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl("https://aframe.io/aframe/examples/boilerplate/panorama/");

【问题讨论】:

    标签: android android-webview aframe


    【解决方案1】:

    对于您的设备和 Android 版本的组合,WebView 似乎不支持 WebGL。您可以查看其他 WebGL 网站进行确认。例如:https://threejs.org/examples/#webgl_geometry_colors

    相关:Android WebView and WebGL

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-04-03
    • 2017-05-24
    • 1970-01-01
    • 2012-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多