Re: Capture API question

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/*">

or

<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
          https://bugzilla.mozilla.org/show_bug.cgi?id=451674

Regards,
Doug Turner

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