Re: [webrtc-pc] Candidate from onicecandidate event and addIceCandidate are incompatible

Looking  at the description of `addIceCandidate`, the `candidate` argument is tested for being null:

If candidate is not null and both sdpMid and sdpMLineIndex are null, return a promise rejected with a newly created TypeError.

Did we forget to clean this up?

Also, there is a legacy `addIceCandidate` method in Section 4.3.3.1.   Does this legacy method behave the same way with respect to the candidate argument?

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

Received on Sunday, 19 March 2017 04:18:45 UTC