5.2.2 RTCRtpSendParameters字典

  1. dictionary RTCRtpSendParameters : RTCRtpParameters {
  2. required DOMString transactionId;
  3. required sequence<RTCRtpEncodingParameters> encodings;
  4. RTCDegradationPreference degradationPreference = "balanced";
  5. RTCPriorityType priority = "low";
  6. };

字典RTCRtpSendParameters成员

DOMString类型的transactionId

应用的最后一组参数的唯一标识符。确保只能基于先前的getParameters调用setParameters,并且没有干预更改。只读参数。

序列类型的encodings

包含媒体RTP编码参数的序列。

RTCDegradationPreference类型的degradationPreference,默认为"balanced":

当带宽受到限制,RTCRtpSender需要在降低分辨率和降低帧率之间做出选择,degradationPreference指定倾向的选择。

RTCPriorityType类型的priority,默认为"low":

表示RTCRtpSender的优先级,它影响RTCRtpSender对象之间的带宽分配。它在[RTCWEB-TRANSPORT]第四节中指定。用户代理可以在RTCRtpSender的编码之间自由地分配带宽。