W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > January 2019

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

From: youennf via GitHub <sysbot+gh@w3.org>
Date: Fri, 25 Jan 2019 05:55:53 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-403016529-1548395752-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:54 UTC