简体   繁体   English

从 Android 模拟器使用 WebView WebGL

[英]Using WebView WebGL from Android emulator

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).据我了解,WebGL 仅在 Android Lollipop 中的 WebView 中受支持(更新 Play 商店中的 WebView 组件)和较新版本(不需要 Play 商店更新)。

However, I have an emulator using Android 7.1.1, and WebGL is not working.但是,我有一个使用 Android 7.1.1 的模拟器,但 WebGL 无法正常工作。 http://webglreport.com says "This browser supports WebGL 1, but it is disabled or unavailable." http://webglreport.com 显示“此浏览器支持 WebGL 1,但已禁用或不可用。” . . I have also tried an Android 6.0 emulator, with the same result.我也尝试过 Android 6.0 模拟器,结果相同。

WebGL works fine in the emulator when using Chrome, but not in a WebView.使用 Chrome 时,WebGL 在模拟器中可以正常工作,但在 WebView 中则不行。

WebGL works fine in a WebView in a physical 6.0 phone. WebGL 在物理 6.0 手机的 WebView 中运行良好。

What could be the reason why WebGL is not working in the same emulator, when using a WebView?使用 WebView 时,WebGL 不能在同一个模拟器中工作的原因是什么?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM