- From: Deepanshu gautam <deepanshu.gautam@huawei.com>
- Date: Sat, 29 Oct 2011 02:29:49 +0000
- To: Anssi Kostiainen <anssi.kostiainen@nokia.com>, "public-device-apis@w3.org WG" <public-device-apis@w3.org>, "public-device-status@w3.org" <public-device-status@w3.org>
Have you thought about having an option to control the Intensity (low, Medium, High) of the vibration? It would be useful for many applications like evolving-alarm, games etc. void vibrate() optional double? pattern Vibration duration in milliseconds Option string intLevel Intensity level for the vibration navigator.vibration.vibrate([2000], H); or even.... navigator.vibration.vibrate([{1000, L}, {500}, {2000, M}, {300}, {3000,H}]) Regards Deepanshu Gautam Service Standards, Huawei Software T: +86 25 5260008 M: +86 135 85147627 -----Original Message----- From: public-device-apis-request@w3.org [mailto:public-device-apis-request@w3.org] On Behalf Of Anssi Kostiainen Sent: Thursday, October 27, 2011 11:38 PM To: public-device-apis@w3.org WG; public-device-status@w3.org Subject: [vibra] Vibration API -- the first stab (was: Mozilla's WebVibrator contribution) Hi All, On 27.10.2011, at 8.32, ext Jonas Sicking wrote: > On Wed, Oct 26, 2011 at 8:14 AM, Anssi Kostiainen > <anssi.kostiainen@nokia.com> wrote: >> >> During today's call the WG agreed we should publish the first Vibration API Editor's Draft before the meeting next week, and start with Mozilla's WebVibrator proposal. Let me know if there are issues with that; I'll commence with my action [1] to spec it out asap so that people will have time to review it before the meeting. >> >> I think everyone understands the WebVibrator prototype is still unstable and details are likely to change, nevertheless it is helpful to have an early draft available in order to solicit feedback during the meeting. > > That sounds great! Yay! Here's the first draft of the Vibration API spec as promised: http://dev.w3.org/2009/dap/vibration/ It's basically Mozilla's implementation, with the following changes and some clarifications: * vibrate() is exposed on navigator.vibration instead of navigator * two event handlers added: onvibrationstart and onvibrationend * the exceptions raised by vibrate() are 'SyntaxError' and 'NotSupportedError' Please look at the draft so that we can have a productive discussion at the TPAC next week. -Anssi Trackbot: this should close my DAP-ACTION-458.
Received on Monday, 31 October 2011 16:16:49 UTC