[mediacapture-main] Should a devicechange event be fired when the list of devices stays the same (#565)

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

== Should a devicechange event be fired when the list of devices stays the same ==
Let's say page A is loaded.
Another page B is loaded and A is backgrounded.
User plugs camera to use it for B.
User unplugs camera.
User closes B.
Page A goes in the foreground.

At that point, it is not clear whether a devicechange event should be fired for page A or not.
If a devicechange event is fired, this leaks a small amount of information to the web page unnecessarily.

In general, if the browser ensures that there is no change between the old storedDeviceList and the newly computed one, it seems useless to generate an event that might trigger unnecessary processing.

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

Received on Friday, 25 January 2019 05:55:55 UTC