The RTCRtpSendParameters
dictionary's encodings
property is an RTCRtpEncodingParameters
object providing configuration settings for the encoder being used for the RTCRtpSender
's track
.
The RTCRtpSendParameters
dictionary's encodings
property is an RTCRtpEncodingParameters
object providing configuration settings for the encoder being used for the RTCRtpSender
's track
.
sendParameters.encodings = encodingParameterList; encodingParameterList = sendParameters.encodings;
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.
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.
Specification |
---|
WebRTC 1.0: Real-Time Communication Between Browsers # dom-rtcrtpsendparameters-encodings |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
encodings |
69 |
≤79 |
No
Firefox uses
RTCRtpParameters.encodings instead. |
No |
56 |
12.1 |
69 |
69 |
No
Firefox uses
RTCRtpParameters.encodings instead. |
48 |
12.2 |
10.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSendParameters/encodings