RTCTrackEvent.streams
The WebRTC API interface RTCTrackEvent
's read-only streams
property specifies an array of MediaStream
objects, one for each of the streams that comprise the track being added to the RTCPeerConnection
.
Syntax
var streams = trackEvent.streams;
Value
An Array
of MediaStream
objects, one for each stream that make up the new track.
Specifications
Specification |
---|
WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtctrackevent-streams |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
streams |
56 |
≤18 |
22 |
No |
43 |
11 |
56 |
56 |
44 |
43 |
11 |
6.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams