对于Android的WebView启用WebGL的支持Android、WebView、WebGL

2023-09-05 00:56:04 作者:北巷九命猫

我要在我的WebView显示WebGL的显卡。请问有什么办法可以修改的Andr​​oid的WebView启用的WebGL。如果是,如何?

解决方案

不是Android的棒棒堂之前在支持WebGL的WebViews 。在奇巧,机器人切换到铬作为本征web视图的实现,但它已被锁定到铬33,没有WebGL的。在棒棒糖,web视图通过Play商店更新,现在支持WebGL的。 (来源: https://developer.chrome.com/multidevice/webview/overview )

想扩展的WebView支持它几乎是不可能的。

您可能会考虑,有一件事是使用CSS 3D转换,而不是WebGL的,那些在Android ICS支持和转发,看到的 http://caniuse.com/#feat=transforms3d

I need to display WebGL graphics in my webview. Is there any way to modify Android WebView to enable WebGL. If yes, How?

解决方案 360极速浏览器支持WEBGL吗

WebGL was not supported in WebViews before Android Lollipop. In KitKat, Android switched to Chromium as the native WebView implementation, but it is locked to Chromium 33, with no WebGL. In Lollipop, WebView is updated via the Play Store, and now supports WebGL. (source: https://developer.chrome.com/multidevice/webview/overview)

Trying to extend WebView to support it is next to impossible.

One thing you might consider, is use CSS 3D transformations instead of WebGL, those are supported on Android ICS and forward, see http://caniuse.com/#feat=transforms3d