The getCapabilities() method returns the most optimistic view of the capabilities of the system for sending media of the given kind. It does not reserve any resources, ports, or other state but is meant to provide a way to discover the types of capabilities of the browser including which codecs or RTP extensions may be supported.

Documentation

Specification

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>WebRTC>PeerConnection


Enabled by default (tracking bug)

Consensus & Standardization

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

  • No signal
  • Shipped/Shipping
  • No signal
  • Positive

Owner

Comments

Security concern: getCapabilities() could be used for fingerprinting. Since there is usually a strong correlation between the browser version and the supported capabilities and it might not be significant.

Last updated on 2020-11-09