MediaStreamTrack.getCapabilities() support for audio device-related constrainable properties.

Returns the device-related capabilities (namely sample size, sample rate, latency, and channel count) of the source associated to a MediaStreamTrack. There is also a variant InputDeviceInfo.getCapabilities(), available in the results of MediaDevices.enumerateDevices().These devices are used as sources for MediaStreamTrack; in this case, getCapabilities() returns the same values as MediaStreamTrack.getCapabilities() for sampleSize, channelCount, and latency.

Comments

The W3C WebRTC working group has decided to remove this feature from the specifications due to lack of use cases that would justify it. Working group decision: https://lists.w3.org/Archives/Public/public-webrtc/2019Apr/0066.html PR that removed the feature: https://lists.w3.org/Archives/Public/public-webrtc/2019Apr/0084.html

Documentation

Specification

Working draft or equivalent

Status in Chromium

Blink>GetUserMedia


Enabled by default (tracking bug) in:

  • Chrome for desktop release 75
  • Chrome for Android release 75

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Last updated on 2019-05-01