cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian LeRoux...@brian.io>
Subject Re: w3c DAP WG discussing vibration strength
Date Thu, 26 Sep 2013 16:58:08 GMT
Would be great to get our plugins aligned with the latest specs. (And now
that we have independent revisiting we can!)


On Thu, Sep 26, 2013 at 4:26 PM, Lisa Seacat DeLuca <ldeluca@us.ibm.com>wrote:

> FYI, the w3c Device API's Working Group is discussing the idea of adding
> strength to the vibration command.  more information can be found here:
> http://www.w3.org/2009/dap/track/issues/146
>
> Does anyone here have any opinion one way or another on this change and
> how it might affect our cordova vibration spec?
>
> proposal example:
>
> Vibration API strength proposal with stair-stepping/smooth volume
> reduce/increase:
>
> navigator.vibrate([
> {
> "time": 200, // Required property.
> "volume": [0, 80] // Minimum 0, maximum 100, default 100. [0, 80] smooth
> volume increase - starts volume strength at 0 and smoothly increases to 80
> till end.
> },
> {
> "time": 1000, // 1000 ms
> "delay": 50, // Will start vibrate after 50 ms. Default 0 ms
> "volume": [0, 100, 0] // Smooth volume reduce-increas-reduce - starts at
> 0, smoothly increases to 100 in 50 ms and smooth reduce to 0 at end.
> },
> {
> "time": 200,
> "volume": [50] // Stair-stepping volume - will start and end volume
> strength 50.
> }
> ]);
>
> or the same in simplified version without strings:
>
> navigator.vibrate([{200, [0, 80]}, {1000, 50, [0, 100, 0]}, {200, [50]}]);
>
>
>
> Lisa Seacat DeLuca
> ldeluca@apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message