从 Android 模拟器使用 WebView WebGL [英] Using WebView WebGL from Android emulator

查看:46
本文介绍了从 Android 模拟器使用 WebView WebGL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,WebGL 仅在 Android Lollipop 中的 WebView 中受支持(更新 Play 商店中的 WebView 组件)和更新版本(无需更新 Play 商店).

As I understand, WebGL is only supported in WebView in Android Lollipop (updating the WebView component in the Play Store), and newer versions (no Play Store update required).

但是,我有一个使用 Android 7.1.1 的模拟器,但 WebGL 无法正常工作.http://webglreport.com此浏览器支持 WebGL 1,但它已被禁用或不可用.".我也尝试过 Android 6.0 模拟器,结果相同.

However, I have an emulator using Android 7.1.1, and WebGL is not working. http://webglreport.com says "This browser supports WebGL 1, but it is disabled or unavailable.". I have also tried an Android 6.0 emulator, with the same result.

当使用 Chrome 时,WebGL 在模拟器中运行良好,但在 WebView 中运行不正常.

WebGL works fine in the emulator when using Chrome, but not in a WebView.

WebGL 在物理 6.0 手机的 WebView 中运行良好.

WebGL works fine in a WebView in a physical 6.0 phone.

使用 WebView 时,WebGL 不能在同一个模拟器中工作的原因是什么?

What could be the reason why WebGL is not working in the same emulator, when using a WebView?

推荐答案

事实证明这是模拟器当前版本的限制:https://code.google.com/p/android/issues/detail?id=229984

This turns out to be a limitation of the current version of the emulator: https://code.google.com/p/android/issues/detail?id=229984

这篇关于从 Android 模拟器使用 WebView WebGL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆