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

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