4.2.5. currentDirection
4.2.5. currentDirection
currentDirection 属性指示收发器关联的 "m=" 部分的最后协商方向。更具体地说, 它指示上次应用的 answer(包括临时 answer)中关联 "m=" 部分的 direction 属性 [RFC3264], 如果它是远程 answer, 则 "send" 和 "recv" 方向会反转。例如, 如果远程 answer 中关联 "m=" 部分的 direction 属性为 "recvonly", 则 currentDirection 设置为 "sendonly"。
如果尚未应用引用此收发器的 answer 或者收发器已停止, 则 currentDirection 设置为 "null"。