W3C home > Mailing lists > Public > public-media-capture@w3.org > May 2012

Re: Rendering on a <canvas>

From: Stefan Hakansson LK <stefan.lk.hakansson@ericsson.com>
Date: Tue, 1 May 2012 08:06:17 +0200
Message-ID: <4F9F7D59.2010702@ericsson.com>
To: public-media-capture@w3.org
On 04/30/2012 07:57 PM, Anant Narayanan wrote:
> Hi all,
>
> As we try to resolve the<video>  assignment issue, I'd like begin the
> <canvas>  discussion in parallel.
>
> I propose that we allow direct assignment of a MediaStream to a<canvas>
> object, like so:
>
> let stream = [MediaStream obtained by some means]
> let ctx = document.getElementById('canvas').getContext('2d');
> ctx.stream = stream;

If I understand correctly, this would mean that "stream" is added to the 
2d and webgl contexts of canvas. I guess that those specs should be 
updated if we choose to follow this path.
Received on Tuesday, 1 May 2012 06:06:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:14:59 GMT