最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - how to find out the RAM and GPU information of my visitors? - Stack Overflow

programmeradmin1浏览0评论

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)?

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)?

Share Improve this question asked Apr 15, 2013 at 22:02 KentorKentor 6571 gold badge11 silver badges27 bronze badges 3
  • Maybe a duplicate, stackoverflow.com/questions/15464896/… – gustavodidomenico Commented Apr 15, 2013 at 22:04
  • Highly unlikely JavaScript can do this, and it's a little shady to use otherwise pointless Flash (which might be able to do this but I'm not really sure) to determine private system configuration data. – millimoose Commented Apr 15, 2013 at 22:04
  • Why not just have users download and run a survey app if they want to give you this data, the way Steam does it? Or upload a dump from an existing tool for this like CPU-Z. – millimoose Commented Apr 15, 2013 at 22:05
Add a comment  | 

3 Answers 3

Reset to default 8

Use

navigator.deviceMemory

To find the device RAM in gigabytes.

See browser support.

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.

To determine the client's RAM, use navigator.deviceMemory To get GPU information you can use some tools like: https://github.com/pmndrs/detect-gpu/tree/master

发布评论

评论列表(0)

  1. 暂无评论