--- title: RTCRtpTransceiver slug: Web/API/RTCRtpTransceiver tags: - API - Interface - Media - MediaStreamTrack - NeedsTranslation - RTCRtpTransceiver - RTP - Reference - SDP - TopicStub - Transceiver - WebRTC translation_of: Web/API/RTCRtpTransceiver ---
The WebRTC interface RTCRtpTransceiver
describes a permanent pairing of an {{domxref("RTCRtpSender")}} and an {{domxref("RTCRtpReceiver")}}, along with some shared state.
Each {{Glossary("SDP")}} media section describes one bidirectional SRTP ("Secure Real Time Protocol") stream (excepting the media section for {{domxref("RTCDataChannel")}}, if present). This pairing of send and receive SRTP streams is significant for some applications, so RTCRtpTransceiver
is used to represent this pairing, along with other important state from the media section. Each non-disabled SRTP media section is always represented by exactly one transceiver.
A transceiver is uniquely identified using its {{domxref("RTCRtpTransceiver.mid", "mid")}} property, which is the same as the media ID (mid
) of its corresponding m-line. An RTCRtpTransceiver
is associated with an m-line if its mid
is non-null; otherwise it's considered disassociated.
null
if the transceiver is stopped or has never participated in an exchange of offers and answers. To change the transceiver's directionality, set the value of the {{domxref("RTCRtpTransceiver.direction", "direction")}} property.null
if neither a local or remote description has been applied, or if its associated m-line is rejected by either a remote offer or any answer.RTCRtpSender
and RTCRtpReceiver
has been permanently disabled, either due to SDP offer/answer, or due to a call to {{domxref("RTCRtpTransceiver.stop", "stop()")}}.RTCRtpTransceiver
. The associated sender stops sending data, and the associated receiver likewise stops receiving and decoding incoming data.Specification | Status | Comment |
---|---|---|
{{SpecName("WebRTC 1.0", "#rtcrtptransceiver-interface", "RTCRtpTransceiver")}} | {{Spec2("WebRTC 1.0")}} |
{{Compat("api.RTCRtpTransceiver")}}