currentDirection property

RTCRtpTransceiverDirection? get currentDirection

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

The directionality indicates whether the transceiver will offer to send and/or receive data, or whether it is inactive or stopped and won't send or receive data.

The transceiver's preferred directionality can be set and read using the RTCRtpTransceiver.direction property. Changing the direction triggers a renegotiation, which may eventually result in the currentDirection also changing.

Implementation

external RTCRtpTransceiverDirection? get currentDirection;