RtpTransceiver

open class RtpTransceiver

Java wrapper for a C++ RtpTransceiverInterface.

The RTCRtpTransceiver maps to the RTCRtpTransceiver defined by the WebRTC specification. A transceiver represents a combination of an RTCRtpSender and an RTCRtpReceiver that share a common mid. As defined in JSEP, an RTCRtpTransceiver is said to be associated with a media description if its mid property is non-nil; otherwise, it is said to be disassociated. JSEP: https://tools.ietf.org/html/draft-ietf-rtcweb-jsep-24

Note that RTCRtpTransceivers are only supported when using RTCPeerConnection with Unified Plan SDP.

WebRTC specification for RTCRtpTransceiver, the JavaScript analog: https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver

Types

Link copied to clipboard
Java version of webrtc::RtpTransceiverDirection - the ordering must be kept in sync.
Link copied to clipboard
Tracks webrtc::RtpTransceiverInit.

Functions

Link copied to clipboard
open fun dispose()
Link copied to clipboard
The current_direction attribute indicates the current direction negotiated for this transceiver.
Link copied to clipboard
The direction attribute indicates the preferred direction of this transceiver, which will be used in calls to CreateOffer and CreateAnswer.
Link copied to clipboard
Media type of the transceiver.
Link copied to clipboard
open fun getMid(): String
The mid attribute is the mid negotiated and present in the local and remote descriptions.
Link copied to clipboard
The receiver attribute exposes the RtpReceiver corresponding to the RTP media that may be received with the transceiver's mid.
Link copied to clipboard
open fun getSender(): RtpSender
The sender attribute exposes the RtpSender corresponding to the RTP media that may be sent with the transceiver's mid.
Link copied to clipboard
open fun isStopped(): Boolean
The stopped attribute indicates that the sender of this transceiver will no longer send, and that the receiver will no longer receive.
Link copied to clipboard
Link copied to clipboard
open fun setDirection(rtpTransceiverDirection: RtpTransceiver.RtpTransceiverDirection): Boolean
Sets the preferred direction of this transceiver.
Link copied to clipboard
open fun stop()
The Stop method will for the time being call the StopInternal method.
Link copied to clipboard
open fun stopInternal()
The StopInternal method stops the RtpTransceiver, like Stop, but goes immediately to Stopped state.
Link copied to clipboard
open fun stopStandard()
The StopStandard method irreversibly stops the RtpTransceiver.