@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="RTCRtpTransceiver")
public class RTCRtpTransceiver
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
direction
The RTCRtpTransceiver property direction is a string which indicates the transceiver's preferred directionality.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RTCRtpTransceiver() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
currentDirection()
The read-only RTCRtpTransceiver property currentDirection is a string which indicates the current directionality of the transceiver.
|
java.lang.String |
mid()
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.
|
RTCRtpReceiver |
receiver()
The read-only receiver property of WebRTC's RTCRtpTransceiver interface indicates the RTCRtpReceiver responsible for receiving and decoding incoming media data for the transceiver's stream.
|
RTCRtpSender |
sender()
The read-only sender property of WebRTC's RTCRtpTransceiver interface indicates the RTCRtpSender responsible for encoding and sending outgoing media data for the transceiver's stream.
|
void |
setCodecPreferences(JsArray<RTCRtpCodecCapability> codecs)
The RTCRtpTransceiver method setCodecPreferences() configures the transceiver's codecs given a list of RTCRtpCodecCapability objects specifying the new preferences for each codec.
|
void |
setCodecPreferences(RTCRtpCodecCapability[] codecs)
The RTCRtpTransceiver method setCodecPreferences() configures the transceiver's codecs given a list of RTCRtpCodecCapability objects specifying the new preferences for each codec.
|
void |
stop()
The stop() method in the RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated RTCRtpSender and RTCRtpReceiver.
|
@Nonnull @RTCRtpTransceiverDirection public java.lang.String direction
@JsProperty(name="currentDirection") @Nullable @RTCRtpTransceiverDirection public java.lang.String currentDirection()
@JsProperty(name="mid") @Nullable public java.lang.String mid()
@JsProperty(name="receiver") @Nonnull public RTCRtpReceiver receiver()
@JsProperty(name="sender") @Nonnull public RTCRtpSender sender()
public void setCodecPreferences(@Nonnull
JsArray<RTCRtpCodecCapability> codecs)
public void setCodecPreferences(@Nonnull
RTCRtpCodecCapability[] codecs)
public void stop()