对于Android的WebView启用WebGL的支持 [英] Enabling WebGL support for Android WebView

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

问题描述

我要在我的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?

解决方案

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

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

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