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

Re: Camera API proposal

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 26 Aug 2009 21:14:23 +0000 (UTC)
To: Brad Lassey <blassey@mozilla.com>
Cc: Robin Berjon <robin@berjon.com>, marcosc@opera.com, Max Froumentin <maxfro@opera.com>, public-device-apis@w3.org, andreip@google.com
Message-ID: <Pine.LNX.4.62.0908262051290.13785@hixie.dreamhostps.com>
On Wed, 26 Aug 2009, Brad Lassey wrote:
> 
> I think the best way to provide support for a live video preview is to 
> feed the video through an html5 video tag.  The simplest way to do that, 
> IMHO, would be to have a method in the api that returns a URI that can 
> be used as the source for a video tag.
> 
> ex:
>    myVideoEl.src = cameraAPI.getVideoPreviewURI().spec;

Having a "Stream" interface equivalent to the FileData interface, with a 
"URL" attribute that gives you a URL that returns that stream, is the way 
to go, IMHO. This would give us the broadest options for integration with, 
e.g., WebSockets later (we could just add an API that takes a stream, and 
another that returns a stream, for instance). Having consistency across 
all the various APIs in this manner is strongly desireable, IMHO.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 26 August 2009 21:13:23 UTC

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