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

On 05/12/2013 8:31 PM, bugzilla@jessica.w3.org wrote:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=24015
>
>              Bug ID: 24015
>             Summary: Add callback to indicate when available media devices
>                      change
>             Product: WebRTC Working Group
>             Version: unspecified
>            Hardware: All
>                  OS: All
>              Status: NEW
>            Severity: enhancement
>            Priority: P2
>           Component: Media Capture and Streams
>            Assignee: public-media-capture@w3.org
>            Reporter: juberti@google.com
>                  CC: public-media-capture@w3.org
>
> Forked from https://www.w3.org/Bugs/Public/show_bug.cgi?id=23263. The idea here
> is to have a callback that apps can register for to learn when a new device
> becomes available (or is removed). The main use case here is for a Bluetooth
> headset - if one shows up, the app may want to display a button indicating the
> call can be transferred to the headset, and remove that button if the headset
> disappears.
>
> Currently this would require the app poll the getMediaDevices API on a regular
> basis, which is inefficient at best.
>
> I suggest the name navigator.onmediadeviceschange for this API.

+1. Good idea!

Gili

Received on Friday, 6 December 2013 06:40:23 UTC