how to find out the RAM and GPU information of my visitors?

為{幸葍}努か 提交于 2019-12-11 00:28:09

问题


I want to know how much RAM my visitors have and all the information available about their GPU. Is there any way to achieve this via JavaScript or maybe ActionScript (Flash)?


回答1:


JavaScript, Browser extensions and Plugins are heavily sandboxed that they have limited, to no access to the system for security purposes. Only limited hardware can be accessed directly (with the user's consent), like camera and microphone for JavaScript's getUserMedia or Flash.

The nearest you can get is to have the user install something on the PC that interacts with the browser, like a Java applet. Can You Run It uses this method to check the user's PC if it matches game requirements.




回答2:


Use

navigator.deviceMemory

To find the device RAM in gigabytes.

See browser support.



来源:https://stackoverflow.com/questions/16025428/how-to-find-out-the-ram-and-gpu-information-of-my-visitors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!