RTCPeerConnection: getReceivers() method
WebRTC
WebRTC
The **`getReceivers()`** method of the RTCPeerConnection interface 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
```js-nolint
getReceivers()
```
### Parameters
None.
### 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.
The array does not include receivers associated with transceivers that have been [stopped](/docs/Web/API/RTCRtpTransceiver/currentDirection) (following offer/answer).
## Example
tbd
## Specifications
## Browser compatibility
## See also
- [WebRTC](/docs/Web/API/WebRTC_API)
- RTCRtpSender
Cite this
"RTCPeerConnection: getReceivers() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getReceivers JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy