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

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Friday, 6 December 2013 01:31:50 UTC