RTCRtpSendParameters
The WebRTC API's RTCRtpSendParameters dictionary is used to specify the parameters for an RTCRtpSender when calling its setParameters() method.
Properties
In addition to the properties below, RTCRtpSendParameters inherits the properties from the RTCRtpParameters interface.
encodings-
An array of
RTCRtpEncodingParametersobjects, each specifying the parameters for a single codec that could be used to encode the track's media. transactionId-
A string containing a unique ID for the last set of parameters applied; this value is used to ensure that
setParameters()can only be called to alter changes made by a specific previous call togetParameters(). Once this parameter is initially set, it cannot be changed.
Obsolete properties
-
degradationPreference -
Specifies the preferred way the WebRTC layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the
RTCDegradationPreferenceenumerated string type, and the default isbalanced. -
priority -
A string from the
RTCPriorityTypeenumerated type which indicates the encoding's priority. The default value islow.
Specifications
| Specification |
|---|
| WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtcrtpsendparameters |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RTCRtpSendParameters |
69 |
≤79 |
No
Firefox expects an
RTCRtpParameters object instead. |
No |
? |
12.1 |
69 |
69 |
No
Firefox expects an
RTCRtpParameters object instead. |
? |
12.2 |
10.0 |
degradationPreference |
No |
No |
No |
No |
? |
12.1 |
No |
No |
No |
? |
12.2 |
No |
encodings |
69 |
≤79 |
No
Firefox uses
RTCRtpParameters.encodings instead. |
No |
? |
12.1 |
69 |
69 |
No
Firefox uses
RTCRtpParameters.encodings instead. |
? |
12.2 |
10.0 |
priority |
No |
No |
No |
No |
? |
No |
No |
No |
No |
? |
No |
No |
transactionId |
69 |
≤79 |
No |
No |
? |
12.1 |
69 |
69 |
No |
? |
12.2 |
10.0 |
See also
© 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