[whatwg] Stream API Feedback

On 2011-03-16 19:29, Olli Pettay wrote:
> Perhaps navigator.getUserMedia("audio,video", success, error);
> could return an url to the device in the success callback, and that url
> could be then set to video.src.

The creation of a URL is unnecessary indirection.  It's easier to avoid 
creating special URLs entirely, and instead assign the the Stream object 
directly to video.src.

e.g.

navigator.getUserMedia("video", function(stream) {
   video.src = stream;
}

This is then reflected in the src content attribute as 
"about:streamurl", and is returned upon getting video.src.  This 
requires that the HTMLMediaElement src property definition needs to be 
changed from DOMString to any.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/

Received on Thursday, 17 March 2011 06:11:39 UTC