W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

[whatwg] Do we really need to introduce a <device> element for giving access to webcams and mikes?

From: Julien Cayzac <julien.cayzac@gmail.com>
Date: Tue, 4 May 2010 11:40:40 +0900
Message-ID: <k2i8ac6caaf1005031940w84e78340va7f17de607f18f86@mail.gmail.com>
On Tue, May 4, 2010 at 11:37 AM, Julien Cayzac <julien.cayzac at gmail.com> wrote:
> I am not sure if I get your point here: are you saying that using the
> webcam locally in a canvas and somehow transmitting the webcam video
> over the network are two independent permissions to grant? If so, how
> would you detect the latter, since by allowing the page to manipulate
> the video in <canvas> you would give it permission to use toDataURL()
> too, so it could still transmit frames to the server or to other party
> if a ConnectionPeer is involved?

To answer my own question: by raising the origin-clean flags of the
<canvas> element the webcam was "attached" to.

Now, I see no reference to any interaction between <device> and
<canvas> mentionned in http://dev.w3.org/html5/html-device/

Julien Cayzac
Received on Monday, 3 May 2010 19:40:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:23 UTC