Baseline Widely available *
The getTransceivers()
method of the RTCPeerConnection
interface returns a list of the RTCRtpTransceiver
objects being used to send and receive data on the connection.
None.
Return valueAn 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();
});
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3