RTCPeerConnection.getReceivers()

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 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.
Candidate Recommendation Initial specification.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Experimental
Chrome Full support 59Edge Full support YesFirefox Full support 22IE ? Opera Full support 46Safari ? WebView Android Full support 59Chrome Android Full support 59Edge Mobile Full support YesFirefox Android Full support 44Opera Android Full support 46Safari iOS ? Samsung Internet Android Full support 6.0

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also

Document Tags and Contributors

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