[mediacapture-main] Allow ondevicechange to be fired before permission is granted or any device is opened

ShijunS has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== Allow ondevicechange to be fired before permission is granted or 
any device is opened ==
As part of the MediaDevices interface, the ondevicechange event is to 
inform the app to enumerate capture devices.  Given device enumeration
 is independent from whether there is a device in use or not by the 
current UA, firing the event should not be restricted either.  

As one use case, assuming we have a desktop machine without any 
capture device to start with, app can decide not to call gUM and hide 
the related features.  Once a device is plugged in, app can respond to
 the ondevicechange event to expose related features, such as a 
profile photo button, or a voice recording button, etc.  The Edge 
implementation today supports the use case.  The spec allowed it as 
well prior to the 20160423 version.

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/402 using your GitHub 
account

Received on Wednesday, 28 September 2016 05:35:13 UTC