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.
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 75
- Chrome for Android release 75
Consensus & Standardization
Last updated on 2019-05-27