← Back to release summary

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

Category
Multimedia
Type
New or changed feature
Status
Enabled by default (Chrome 75)
Intent stage
None

Summary

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.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getCapabilities

View on chromestatus.com