W3C home > Mailing lists > Public > public-device-apis@w3.org > October 2011

[vibra] Vibration API -- the first stab (was: Mozilla's WebVibrator contribution)

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Thu, 27 Oct 2011 18:38:08 +0300
Message-Id: <77C403DF-5145-4D8C-AAE2-CC9780A1FF1B@nokia.com>
To: "public-device-apis@w3.org WG" <public-device-apis@w3.org>, public-device-status@w3.org
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:


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.


Trackbot: this should close my DAP-ACTION-458.
Received on Thursday, 27 October 2011 15:38:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:50 UTC