W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2010

Re: Capture API question

From: Doug Turner <dougt@dougt.org>
Date: Fri, 11 Jun 2010 10:51:21 -0700
Cc: Robin Berjon <robin@robineko.com>, Dominique Hazael-Massieux <dom@w3.org>, Andrei Popescu <andreip@google.com>
Message-Id: <36506B5E-B6E0-413B-991F-B272CED5CE85@dougt.org>
To: W3C Device APIs and Policy WG <public-device-apis@w3.org>
Hi All,

Mozilla is interested in the following.  For images and fixed length video (e.g. a video clip, not streaming.) we want this to work.

<input type="file" accept="image/*">


<input type="file" accept="video/*">

When the user clicks on the button assoicated with the input, a dialog will appear showing a live preview of their camera (and maybe a way to get to their file system pictures).  They will be able to take a screenshot or record.  When they are happy, they can click okay, and the data can be given to the page.  This follows the same security model that users are already comfortable with (namely the file picker).

And then the page can make use of the File API for data manipulation (file api ->  data uri (or reference) ->  canvas)

We have started an implementation based on this.

See bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=507749

Doug Turner
Received on Friday, 11 June 2010 17:51:57 UTC

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