RTCRtpSender / RTCRtpReceiver.getCapabilities()

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.

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.

Documentation

Specification

Editor's draft

Status in Chromium

Blink>WebRTC>PeerConnection


Enabled by default (tracking bug) in:

  • Chrome for desktop release 69
  • Chrome for Android release 69
  • Android WebView release 69
  • Opera release 56
  • Opera for Android release 56

Consensus & Standardization

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

  • No public signals
  • Shipped
  • No public signals
  • Positive

Owner

Last updated on 2018-07-20