W3C home > Mailing lists > Public > public-device-apis@w3.org > November 2009

Re: Camera/Caputre API

From: Max Froumentin <maxfro@opera.com>
Date: Fri, 13 Nov 2009 17:05:52 +0100
Message-ID: <4AFD83E0.20609@opera.com>
To: "Tran, Dzung D" <dzung.d.tran@intel.com>
CC: Dominique Hazael-Massieux <dom@w3.org>, "Ingmar.Kliche@telekom.de" <Ingmar.Kliche@telekom.de>, "public-device-apis@w3.org" <public-device-apis@w3.org>
On 12/11/2009 16:09, Tran, Dzung D wrote:
> I sent this message earlier, but didn't see it, so sorry if this is a repeat.
> We should take a look at Gears Camera API:
> http://code.google.com/p/gears/wiki/CameraAPI

Andrei had already posted that link a few months back, which started a 
similar discussion:


Personally, I like the File Upload idea. E.g.:

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

var files = document.getElementById('cameraInput');
// returns an instance of Filelist

// let's write the uploaded picture in to a canvas
var image =  files.item[0].getAs("File.IMAGE");
var canvas = document.getElementById("someCanvas");

or something similar which matches the File Upload specification.

Seems to fulfill most use cases. Except the streaming video, I'm afraid ;)

Received on Friday, 13 November 2009 16:06:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:13 UTC