Contact emails
mikhail.p...@intel.com, anssi.ko...@intel.com, alexander...@intel.com
Spec
https://w3c.github.io/sensors/
https://w3c.github.io/accelerometer/
https://w3c.github.io/gyroscope/
https://w3c.github.io/orientation-sensor/
Summary
The Generic Sensors API is a framework for adding sensor devices to the web platform in a consistent way. We intend to experiment with the Accelerometer, LinearAccelerationSensor, Gyroscope, AbsoluteOrientationSensor and RelativeOrientationSensor interfaces which are are replacements for the DeviceMotionEvent and DeviceOrientationEvent interfaces.
Link to “Intent to Implement” blink-dev discussion
Intent to Implement: Generic Sensor & Ambient Light Sensor APIs
Intent to implement Accelerometer, Gyroscope and Magnetometer Sensor APIs
Goals for experimentation
The goal for this experiment is to gain developer feedback on the shape of these new sensor APIs. As there are ongoing discussions around the security and privacy implications of adding new and higher resolution sensor APIs to the web platform we are currently not seeking to experiment with sensor types which are not already exposed by an existing API.
Experimental timeline
Currently targeting M-62 to M-65.
Any risks when the experiment finishes?
Sites who were using these new interfaces will have to switch back to the older events.
Ongoing technical constraints
None, except for platform sensor availability as documented in the next section.
Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?
This feature will be supported on all five Blink platforms, however sensor availability varies by platform. The current state of platform support for various sensor types is documented in //services/device/generic_sensor/README.md
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=750018
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5698781827825664
BR,
Mikhail
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/9b4d1602-059e-4e67-969c-fbe8212dd2e5%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYezHGDAO2vJ_jcoA%3DAO_MnTjVLRCU5OvkXEN3Pm3a-nLw%40mail.gmail.com.
Hi Philip,
Thanks for your question!
I agree with Reilly that we should be careful about choosing the right API shape.
The goal of experiment is to gather feedback on current API usability. The Origin Trial feedback (questionnaire) would help WG to make important decisions about Generic Sensor API development, for example to decide whether we need to:
Expose sensors to service workers
Provide sensor readings at higher rates (>60Hz)
Allow changing sensor options after construction (e.g., frequency)
Provide solution for synchronization of sensor and screen coordinate systems
Improve sensor features detection
Provide better mechanisms for the Sensor interface extensibility
Clarify whether we need granular permission tokens for orientation sensor classes
Provide new sensor types and/or options (e.g. accuracy)
BR,
Mikhail
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c7e27e22-2cbd-4f20-98e3-5f1ee232ca78%40chromium.org.
Thanks Jason, and LGTM for this experiment in whatever form it takes.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/7c5ad341-cbbe-46fc-8d45-6a52ee683829%40chromium.org.