How we built it

Navigator.mediaDevices

Navigator.mediaDevices has * an enumerateDevices function, which provides the same functionality as MediaStreamTrack.getSources and adds audio output devices to the list, and * a devicechange event to notify when the set of devices available have changed. enumerateDevices is enabled by default, and the devicechange event is behind a flag.

Comments

Firefox ships MediaDevices, but does not yet support ondevicechange. They are planning to add support: https://bugzilla.mozilla.org/show_bug.cgi?id=1152383

Demo

Documentation

Specification

Editor's draft

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 47
  • Opera release 34
  • Opera for Android release 34

Consensus & Standardization

Owners

Last updated on 2016-05-27