RTCRemoteInboundRtpStreamStats: codecId 属性

Baseline 已广泛支持

此特性已经十分成熟,可在许多设备和浏览器版本上使用。自 2022 年 3 月起,它已在各浏览器中可用。

RTCRemoteInboundRtpStreamStats 字典的 codecId 属性是一个字符串,它唯一标识了用于生成 RTCCodecStatsRTP 流数据的那个对象。

通过迭代 RTCStatsReport 来查找 RTCRemoteInboundRtpStreamStats.codecId 等于 RTCCodecStats.id 的统计对象,可以关联 RTCRemoteInboundRtpStreamStatsRTCCodecStats 对象。

一个字符串,其中包含用于生成与此 RTP 流关联的 RTCCodecStats 对象的被检查对象的 id

规范

规范
WebRTC 统计 API 的标识符
# dom-rtcrtpstreamstats-codecid

浏览器兼容性