RTCRtpReceiver.getContributingSources()
The getContributingSources()
method of the RTCRtpReceiver
interface returns an array of RTCRtpContributingSource
instances, each corresponding to one CSRC (contributing source) identifier received by the current RTCRtpReceiver
in the last ten seconds.
Syntax
var rtcRtpContributingSources = rtcRtpReceiver.getContributingSources()
Parameters
None.
Return value
An array of RTCRtpContributingSource
instances. Each instance describes one of the contributing sources that provided data to the incoming stream in the past ten seconds.
Specifications
Specification |
---|
WebRTC 1.0: Real-Time Communication Between Browsers (WebRTC 1.0) # dom-rtcrtpreceiver-getcontributingsources |
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 | |
getContributingSources |
59 |
12 |
59 |
No |
46 |
12.1 |
59 |
59 |
59 |
43 |
12.2 |
7.0 |
audio_tracks_supported |
59 |
12 |
59 |
No |
46 |
? |
59 |
59 |
59 |
43 |
? |
7.0 |
video_tracks_supported |
73 |
≤79 |
68 |
No |
? |
? |
73 |
73 |
68 |
? |
? |
11.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/RTCRtpReceiver/getContributingSources