RTCInboundRtpStreamStats: codecId 属性

可用性有限

此特性不是基线特性,因为它在一些最广泛使用的浏览器中不起作用。

codecId 属性是 RTCInboundRtpStreamStats 字典中的一个字符串,它唯一标识了用于生成 RTCCodecStats 对象中有关 RTP 流的数据的对象。

RTCInboundRtpStreamStatsRTCCodecStats 对象通过迭代 RTCStatsReport 来关联,以查找 RTCInboundRtpStreamStats.codecId 等于 RTCCodecStats.id 的统计信息对象。

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

规范

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

浏览器兼容性