RTCRtpSendParameters

The WebRTC API's RTCRtpSendParameters dictionary is used to specify the parameters for an RTCRtpSender when calling its setParameters() 方法。

特性

In addition to the properties below, RTCRtpSendParameters inherits the properties from the RTCRtpParameters 接口。

encodings
An array of RTCRtpEncodingParameters objects, 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 to getParameters() . Once this parameter is initially set, it cannot be changed.

过时特性

degradationPreference
Specifies the preferred way the WebRTC layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the RTCDegradationPreference enumerated string type, and the default is balanced .
priority
A string from the RTCPriorityType enumerated type which indicates the encoding's priority. The default value is low .

规范

规范 状态 Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCRtpSendParameters' in that specification.
候选推荐 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
RTCRtpSendParameters Chrome 69 Edge ≤79 Firefox No
不支持 No
Firefox expects an RTCRtpParameters object instead.
IE No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android No
不支持 No
Firefox expects an RTCRtpParameters object instead.
Opera Android ? Safari iOS ? Samsung Internet Android 10.0
degradationPreference Chrome No Edge No Firefox No IE No Opera ? Safari ? WebView Android No Chrome Android No Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android No
encodings Chrome 69 Edge ≤79 Firefox No
不支持 No
Firefox uses RTCRtpParameters.encodings 代替。
IE No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android No
不支持 No
Firefox uses RTCRtpParameters.encodings 代替。
Opera Android ? Safari iOS ? Samsung Internet Android 10.0
priority Chrome No Edge No Firefox No IE No Opera ? Safari ? WebView Android No Chrome Android No Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android No
transactionId Chrome 69 Edge ≤79 Firefox No IE No Opera ? Safari ? WebView Android 69 Chrome Android 69 Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 10.0

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
见实现注意事项。

另请参阅