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

View in English Always switch to English

RTCTrackEvent:streams 属性

Baseline Widely available

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

WebRTC API RTCTrackEvent 接口的 streams 只读属性返回 MediaStream 对象的数组,其中的每个元素都是构成添加到 RTCPeerConnection 上的轨道的流对象。

MediaStream 对象的数组(Array),其中每个对象都是构成新轨道的一个流。

规范

Specification
WebRTC: Real-Time Communication in Browsers
# dom-rtctrackevent-streams

浏览器兼容性