The getTracks()
method of the MediaStream
interface returns a sequence that represents all the MediaStreamTrack
objects in this stream's track set
, regardless of MediaStreamTrack.kind
.
The getTracks()
method of the MediaStream
interface returns a sequence that represents all the MediaStreamTrack
objects in this stream's track set
, regardless of MediaStreamTrack.kind
.
None.
An array of MediaStreamTrack
objects.
Specification |
---|
Media Capture and Streams # dom-mediastream-gettracks |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
getTracks |
38 | 12 | 34 | No | 25 | 11 | 38 | 38 | 34 | 25 | 11 | 3.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTracks