This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
* Some parts of this feature may have varying levels of support.
The getTransceivers() method of the RTCPeerConnection interface returns a list of the RTCRtpTransceiver objects being used to send and receive data on the connection.
getTransceivers()
None.
An array of the RTCRtpTransceiver objects representing the transceivers handling sending and receiving all media on the RTCPeerConnection. The array is in the order in which the transceivers were added to the connection. The array does not include transceivers that have already been stopped (following offer/answer).
The following snippet of code stops all transceivers associated with an RTCPeerConnection.
pc.getTransceivers().forEach((transceiver) => {
transceiver.stop();
});
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
getTransceivers |
69 | 79 | 59 | 56 | 11 | 69 | 59 | 48 | 11 | 10.0 | 79 | 11 |
stopped_transceivers_removed |
88 | 88 | 118 | 74 | No | 88 | 118 | 63 | No | 15.0 | 88 | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getTransceivers