[vibration] ISSUE-146: Add vibration strength control

laukstein has just created a new issue for 
https://github.com/w3c/vibration:

== ISSUE-146: Add vibration strength control ==
Any ETA/status for my proposed "Add vibration strength control" 
https://www.w3.org/2009/dap/track/issues/146 ?

Maybe iOS now supports vibration strength control, or needed to open 
issue/proposal for Apple. Anyway after standard is proposed, vendors 
must/expected to fallow it. I think standards proposal must be made 
before vendors began its own implementation in non-standard way.

---

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-increase-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 keys:

    navigator.vibrate([{200, [0, 80]}, {1000, 50, [0, 100, 0]}, {200, 
[50]}]);

and single 1s vibrate with full strength and without delay:

    navigator.vibrate({1000});

Please view or discuss this issue at 
https://github.com/w3c/vibration/issues/17 using your GitHub account

Received on Thursday, 20 October 2016 06:17:19 UTC