此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

RTCRemoteOutboundRtpStreamStats:type 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

RTCRemoteOutboundRtpStreamStats 字典的 type 属性是一个值为 "remote-outbound-rtp" 的字符串。

通过遍历对 RTCPeerConnection.getStats() 的调用所返回的 RTCStatsReport 对象,你可以获得不同的统计数据。type 表示在特定迭代步骤中可通过对象获取的统计信息集合。当其值为 "remote-outbound-rtp" 时,表示当前步骤中可用的统计信息即为 RTCRemoteOutboundRtpStreamStats 中定义的数据。

值为 "remote-outbound-rtp" 的字符串。

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcstats-type

浏览器兼容性