This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The RTCPeerConnection.getReceivers()
method returns an array of RTCRtpReceiver
objects, each of which represents one RTP receiver. Each RTP receiver manages the reception and decoding of data for a MediaStreamTrack
on an RTCPeerConnection
Syntax
var receivers = rtcPeerConnection.getReceivers();
Return value
An array of RTCRtpReceiver
objects, one for each track on the connection. The array is empty if there are no RTP receivers on the connection.
The order of the returned RTCRtpReceiver instances is not defined by the specification, and may change from one call to getReceivers()
to the next.
Example
tbd
Specifications
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'RTCPeerConnection.getReceivers()' in that specification. |
Candidate Recommendation | Initial specification. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
getReceivers | Chrome Full support 59 | Edge Full support ≤18 | Firefox Full support 22 | IE No support No | Opera Full support 46 | Safari Full support 11 | WebView Android Full support 59 | Chrome Android Full support 59 | Firefox Android Full support 44 | Opera Android Full support 43 | Safari iOS Full support Yes | Samsung Internet Android Full support 6.0 |
Legend
- Full support
- Full support
- No support
- No support