此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

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 统计数据的类型是 RTCAudioSourceStatsRTCVideoSourceStats。更进一步,你可以通过 kind 属性继续细分统计数据类型(例如 RTCVideoSourceStats 会对应 video)。

值为 media-source 的字符串。

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcstats-type

浏览器兼容性