Comments (5)
app that queries whatever platform API to get the DPI (a la DeviceInfo App)
This could also be a script maybe running via adb
from webvr-polyfill-dpdb.
My understanding is that most of this data isn't available to web content, so we'd need to manually get the information, which is the reason that this crowd-sourced DB exists -- if web content had access to this already, it wouldn't need to look up via UA!
I wonder if there could be a script provided, that, with a connected Android device via adb, could get the relevant information from the connected device, and output a JSON chunk to be contributed.
from webvr-polyfill-dpdb.
@jsantell & @cvan I know it's been over a year but I'm curious to know if either of you have any more ideas/requirements/thoughts on this issue? I'm thinking about creating a script like this but don't think I have enough context on the problem yet & would love some help!
from webvr-polyfill-dpdb.
@cwervo np, thanks for asking. what are your use cases? I have thoughts on this, but the more clearly I understand the context, I can probably help better.
from webvr-polyfill-dpdb.
I think something like this can be automated by installing a mobile app; the physical size of the screen is needed to calculate the lens distortion, which isn't available to the web, but the DPI is available to native applications, from which the screen size can be deduced.
I think the most straight forward way to make this easy to contribute new device info to is via native app that queries whatever platform API to get the DPI (a la DeviceInfo App), and calculates a result using the formulas and processes from Adding A Device and display a JSON chunk to copy/paste somewhere. I believe there used to be a cardboard app that did something like this, but a lot of cardboard info is hard to find now: and the calculations and the data's origin for the DPDB in the README are locked behind corp walls, leaving these instructions the most detailed AFAIK on the DPDB.
On a wider topic of easy to contribute, an app that submits the result to be added (via bot or maintainer) would remove the need to know how git works, although that seems more of a part 2 😄 (edit: OP already mentions this, woops)
from webvr-polyfill-dpdb.
Related Issues (20)
- Change versioning scheme HOT 1
- Automate update of last_updated key
- Please add an entry for the Samsung S8+ HOT 2
- Add Lenovo Phab 2 Pro data HOT 1
- Please add entry for Samsung Galaxy S8 HOT 1
- Please add SM-N920P HOT 1
- Please add Motorola G5 Plus HOT 1
- Please add Fly IQ4412
- Samsung Galaxy S7 Edge HOT 3
- Add iPhone X (and other recent devices) HOT 4
- `main` file should not be JSON
- Samsung variants HOT 1
- Device detection not working for Firefox Android S8 HOT 8
- Asia's Samsung 8+ model number SM-G955F HOT 1
- Pixel 3 XL needs an entry HOT 1
- Could we add support for iPhone XS Max? HOT 2
- No DPDB device match. iPhone X, iPad Pro 2, LG V30
- OnePlus 5 UA detection is incorrect
- Account for country/region model variations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webvr-polyfill-dpdb.