RTCRtpTransceiver

The WebRTC interface RTCRtpTransceiver describes a permanent pairing of an RTCRtpSender and an RTCRtpReceiver, along with some shared state.

MDN Reference

Properties

Link copied to clipboard

The read-only RTCRtpTransceiver property currentDirection is a string which indicates the current negotiated directionality of the transceiver.

Link copied to clipboard

The RTCRtpTransceiver property direction is a string that indicates the transceiver's preferred directionality.

Link copied to clipboard
val mid: String?

The read-only RTCRtpTransceiver interface's mid property specifies the negotiated media ID (mid) which the local and remote peers have agreed upon to uniquely identify the stream's pairing of sender and receiver.

Link copied to clipboard

The read-only receiver property of WebRTC's RTCRtpTransceiver interface indicates the data for the transceiver's stream.

Link copied to clipboard

The read-only sender property of WebRTC's RTCRtpTransceiver interface indicates the for the transceiver's stream.

Functions

Link copied to clipboard

The setCodecPreferences() method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding received data, in order of decreasing preference.

Link copied to clipboard
fun stop()

The stop() method in the RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated RTCRtpSender and ``js-nolint stop() `` None.