5.2.2 RTCRtpSendParameters字典
dictionary RTCRtpSendParameters : RTCRtpParameters {required DOMString transactionId;required sequence<RTCRtpEncodingParameters> encodings;RTCDegradationPreference degradationPreference = "balanced";RTCPriorityType priority = "low";};
字典RTCRtpSendParameters成员
DOMString类型的transactionId:
应用的最后一组参数的唯一标识符。确保只能基于先前的getParameters调用setParameters,并且没有干预更改。只读参数。
序列encodings:
包含媒体RTP编码参数的序列。
RTCDegradationPreference类型的degradationPreference,默认为"balanced":
当带宽受到限制,RTCRtpSender需要在降低分辨率和降低帧率之间做出选择,degradationPreference指定倾向的选择。
RTCPriorityType类型的priority,默认为"low":
表示RTCRtpSender的优先级,它影响RTCRtpSender对象之间的带宽分配。它在[RTCWEB-TRANSPORT]第四节中指定。用户代理可以在RTCRtpSender的编码之间自由地分配带宽。
