MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

RTCPeerConnection.getReceivers()

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.

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 RTCReceiver instances is not defined by the specification, and may change from one call to getSenders() to the next.

Example

tbd

Specifications

Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCPeerConnection.getSenders()' in that specification.
Working Draft Initial specification.

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support 59 (Yes) 34 (34) No support ? ?
Feature Android Webview Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 59 59 (Yes) 34.0 (34) No support ? ?

See also

Document Tags and Contributors

 Contributors to this page: jpmedley
 Last updated by: jpmedley,