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

View in English Always switch to English

RTCRemoteOutboundRtpStreamStats:transportId 属性

Limited availability

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

RTCRemoteOutboundRtpStreamStats 字典的 transportId 属性是一个用于唯一标识与此 RTP 流底层传输相关联的 RTCTransportStats 统计对象的字符串。

通过遍历 RTCStatsReport 中满足 RTCRemoteOutboundRtpStreamStats.codecId 等于 RTCTransportStats.id 的元素来查找统计对象,进而可以将 RTCRemoteOutboundRtpStreamStatsRTCTransportStats 对象关联起来。

包含需要检查统计信息的 RTP 流所对应的 RTCTransportStats 对象的 id 字符串。

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcrtpstreamstats-transportid

浏览器兼容性