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