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

View in English Always switch to English

RTCVideoSourceStats:kind 属性

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 字典的 kind 属性是一个值为 video 的字符串。

当遍历 RTCStatsReport 时,kind 可用于区分音频和视频媒体源。两种媒体源的 type 属性值均为 media-source,若 kindaudio,则表示一个 RTCAudioSourceStats 对象。