RTCRemoteInboundRtpStreamStats: type 属性

Baseline 已广泛支持

此特性已得到良好支持,可在多种设备和浏览器版本上使用。自 2021 年 4 月起,所有浏览器均已支持此特性。

type 属性是 RTCRemoteInboundRtpStreamStats 字典的一个字符串属性,其值为 "remote-inbound-rtp"

通过迭代 RTCPeerConnection.getStats() 调用返回的 RTCStatsReport 对象,可以获得不同的统计信息。type 指示在特定迭代步骤中通过该对象可用的统计信息集。值为 "inbound-rtp" 表示当前步骤中可用的统计信息定义在 RTCRemoteInboundRtpStreamStats 中。

一个值为 "inbound-rtp" 的字符串。

规范

规范
WebRTC 统计 API 的标识符
# dom-rtcstats-type

浏览器兼容性