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

On May 27, 2014, at 2:12 PM, Martin Thomson wrote:

> On 26 May 2014 07:20, Adam Bergkvist <adam.bergkvist@ericsson.com> wrote:
>> Why not mediaDevices then? It would not have "media" on it's own, but it
>> limits the general "devices" a bit to only deal with devices related to
>> media.
> 
> "mediaDevices" is what I proposed.
> 
>>> Since current deviceInfo call is async, I think I'd like to keep it
>>> async. Not strongly, but do feel it.
> 
> I think that Harald is right here.
> 
> The browser might not bother to install the necessary hooks to monitor
> device changes unless someone actually installs an event handler.
> That could save some significant effort.  If the enumeration function
> is synchronous, that removes that option.
> 
I agree.  Moreover, if down the road we allow the method to return more info about the devices, including (capability) info that could possibly change during runtime, it would be better not to have to generate a callback because of such a change.  I am *NOT* recommending we extend what is returned at this time, just thinking ahead.

Received on Tuesday, 27 May 2014 18:46:32 UTC