RTCRtpSendParameters.encodings

The RTCRtpSendParameters dictionary's encodings property is an RTCRtpEncodingParameters object providing configuration settings for the encoder being used for the RTCRtpSender's track.

Syntax

sendParameters.encodings = encodingParameterList;

encodingParameterList = sendParameters.encodings;

Value

An array of objects conforming to the RTCRtpEncodingParameters dictionary, each of which contains properties which provide settings and parameters that describe and configure the codec used for a single destination.

Description

In a connection in which there's only one remote peer, the encodings array will have just one object in it, describing the encoding to use when transmitting to that peer. For each peer you add the RTCRtpSender to, another entry is added to encodings to describe its configuration.

Specifications

Specification
WebRTC 1.0: Real-Time Communication Between Browsers
# dom-rtcrtpsendparameters-encodings

Browser compatibility

BCD tables only load in the browser