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: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Mon, 19 May 2014 16:24:15 +0000
To: Harald Alvestrand <harald@alvestrand.no>, "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-ID: <1447FA0C20ED5147A1AA0EF02890A64B1CFFBC64@ESESSMB209.ericsson.se>
On 2014-05-18 20:47, Harald Alvestrand wrote:
> 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.

The story would be precedence - watchPosition works this way. I don't 
know if that is a real good story or not!


Received on Monday, 19 May 2014 16:24:40 UTC

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