getContributingSources()
方法在
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.
var rtcRtpContributingSources = rtcRtpReceiver.getContributingSources()
None.
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.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'getContributingSources()' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
getContributingSources
|
Chrome 59 | Edge 12 | Firefox 59 | IE 不支持 No | Opera 46 | Safari ? | WebView Android 59 | Chrome Android 59 | Firefox Android 59 | Opera Android 43 | Safari iOS ? | Samsung Internet Android 7.0 |
| Audio tracks supported | Chrome 59 | Edge 12 | Firefox 59 | IE 不支持 No | Opera 46 | Safari ? | WebView Android 59 | Chrome Android 59 | Firefox Android 59 | Opera Android 43 | Safari iOS ? | Samsung Internet Android 7.0 |
| Video tracks supported | Chrome 73 | Edge ≤79 | Firefox 68 | IE 不支持 No | Opera ? | Safari ? | WebView Android 73 | Chrome Android 73 | Firefox Android 68 | Opera Android ? | Safari iOS ? | Samsung Internet Android 11.0 |
完整支持
不支持
兼容性未知
用户必须明确启用此特征。
RTCRtpReceiver
getContributingSources()
getStats()
getSynchronizationSources()