← Back to release summary

RTCRtpTransceiver.setCodecPreferences()

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

Summary

Adds the setCodecPreferences() method, which overrides the default codec preferences used by the user agent. This allows applications to disable the negotiation of specific codecs. It also allows an application to cause a remote peer to prefer the codec that appears first in the list for sending.

Standards & signals

View on chromestatus.com