RTCVideoSourceStats:type 属性
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年5月.
RTCVideoSourceStats 字典的 type 属性是一个值为 media-source 的字符串。
media-source 类型指示遍历调用 RTCRtpSender.getStats() 或 RTCPeerConnection.getStats() 方法返回的 RTCStatsReport 统计数据的类型是 RTCAudioSourceStats 或 RTCVideoSourceStats。更进一步,你可以通过 kind 属性继续细分统计数据类型(例如 RTCVideoSourceStats 会对应 video)。
值
值为 media-source 的字符串。
规范
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcstats-type> |