RTCRemoteInboundRtpStreamStats: codecId 屬性

Baseline 已廣泛支援

此特性已經十分成熟,可在許多裝置和瀏覽器版本上使用。自 2022 年 3 月起,它已在各瀏覽器中可用。

RTCRemoteInboundRtpStreamStats 字典的 codecId 屬性是一個字串,它唯一標識了用於生成 RTCCodecStatsRTP 流資料的那個物件。

透過迭代 RTCStatsReport 來查詢 RTCRemoteInboundRtpStreamStats.codecId 等於 RTCCodecStats.id 的統計物件,可以關聯 RTCRemoteInboundRtpStreamStatsRTCCodecStats 物件。

一個字串,其中包含用於生成與此 RTP 流關聯的 RTCCodecStats 物件的被檢查物件的 id

規範

規範
WebRTC 統計 API 的識別符號
# dom-rtcrtpstreamstats-codecid

瀏覽器相容性