RTCInboundRtpStreamStats: thuộc tính kind

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.

Thuộc tính kind của từ điển RTCInboundRtpStreamStats là một chuỗi chỉ ra liệu luồng RTP được mô tả chứa media âm thanh hay video.

Chuỗi này sẽ luôn giống với kind của đối tượng MediaStreamTrack được mang theo luồng. Nó cũng sẽ khớp với loại media của codec liên kết với đối tượng thống kê này (tức là kiểu MIME của thuộc tính RTCCodecStats.mimeType của codec liên kết).

Giá trị

Giá trị luôn là một trong:

"audio"

Luồng chứa media âm thanh.

"video"

Luồng chứa media video.

Thông số kỹ thuật

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcrtpstreamstats-kind

Tương thích trình duyệt