Skip to main content

4.2.5. currentDirection

4.2.5. currentDirection

The currentDirection property indicates the last negotiated direction for the transceiver's associated "m=" section. More specifically, it indicates the direction attribute [RFC3264] of the associated "m=" section in the last applied answer (including provisional answers), with "send" and "recv" directions reversed if it was a remote answer. For example, if the direction attribute for the associated "m=" section in a remote answer is "recvonly", currentDirection is set to "sendonly".

If an answer that references this transceiver has not yet been applied or if the transceiver is stopped, currentDirection is set to "null".