Re: [webrtc-pc] Direction can get out of sync, blocking updates.

I think our intention was that [[direction]] would reflect the current intention, as would be reflected in the next CreateOffer. If the SLD/SRD cycle has the other party agreeing to our proposed direction, it will set currentDirection = direction; the case where it is different is the case where the remote end reduces the functionality (sendrecv => sendonly / recvonly / inactive, for instance).
In this case, I think it is correct to set [[direction]] when setting [[currentDirection]] as part of SRD(answer).

SLD(answer) with unchanged answer should always have [[direction]] and [[currentDirection]] be the same value after SLD(answer) is applied, since the answer was generated based on [[direction]].


-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1940#issuecomment-406283471 using your GitHub account

Received on Thursday, 19 July 2018 13:51:57 UTC