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

Re: [Bug 24015] Add callback to indicate when available media devices change

From: Harald Alvestrand <harald@alvestrand.no>
Date: Sun, 18 May 2014 20:46:10 +0200
Message-ID: <5378FFF2.3070106@alvestrand.no>
To: public-media-capture@w3.org
On 05/18/2014 01:54 PM, Cullen Jennings wrote:
> On May 9, 2014, at 12:08 PM, Dominique Hazael-Massieux <dom@w3.org> wrote:
>> This could be moved to be a global event (i.e. on the window object);
>> but I wonder if instead we could say that the MediaDeviceInfoCallback
>> should be automatically invoked each time the list of media input and
>> output devices change (roughly the same way navigator.watchPosition
>> invokes its callback when the user position changes).
>> Thoughts?
> I like that idea. 
At the moment we have events that fire multiple times, and callbacks
that are called exactly once.

I'd like to have a real good story for why it shouldn't be an event
fired at some object before introducing a third pattern in this API.

Surveillance is pervasive. Go Dark.
Received on Sunday, 18 May 2014 18:46:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:27 UTC