Closed Bug 1309815 Opened 8 years ago Closed 3 years ago

[Presentation WebAPI] Add a refresh button in device selection prompt

Categories

(Firefox :: Site Permissions, defect, P5)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: chunmin, Unassigned)

References

Details

It would be better if there is refresh button to reload the available devices for presentation API in device selection prompt.
Depends on: 1289974
Is there any way for the platform to send an event when a new device is detected, so that the UI can be refreshed automatically with the user needing to click a button?
(In reply to Florian Quèze [:florian] [:flo] from comment #1)
> Is there any way for the platform to send an event when a new device is
> detected, so that the UI can be refreshed automatically with the user
> needing to click a button?
The Presentation API is based on mDNS, which can't provide event-callback mechanisms in some cases. In that protocol, we need to force update to get the available devices. That's why we need a refresh button.
How expensive is it to force-update? Could we do it every second while the prompt is visible?
device-scanning isn't always cheap, though we try to cache it.   Varies by OS considerably, and in some cases perhaps by driver (since we need to interact with the driver to return if a device is available).   We do have a device-change event API now (visible to apps as well)
Severity: normal → S4
Priority: -- → P5

Bug 1697680 removed Presentation API implementation.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.