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
var receivers[] = RTCPeerConnection.getReceivers();
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.
tbd
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'RTCPeerConnection.getSenders()' in that specification. | Candidate Recommendation | Initial specification. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 59 | Yes | 22 | ? | 46 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 59 | 59 | Yes | 44 | 46 | ? | 6.0 |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getReceivers