RTCRemoteInboundRtpStreamStats:codecId 属性
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年3月.
RTCRemoteInboundRtpStreamStats 字典的 codecId 属性是一个用于唯一标识需要获取统计数据的 RTP 流所对应的 RTCCodecStats 对象的字符串。
通过遍历 RTCStatsReport 中满足 RTCRemoteInboundRtpStreamStats.codecId 与 RTCCodecStats.id 相等的元素,进而将 RTCRemoteInboundRtpStreamStats 和 RTCCodecStats 对象关联起来。
值
包含需要检查统计信息的 RTP 流所对应的 RTCCodecStats 对象的 id 字符串。
规范
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcrtpstreamstats-codecid> |