Re: [webrtc-pc] addIceCandidate may not need to throw an error when no remoteDescription (#2519)

> Something like this?

That is a known problem but as far as I know it only affects local examples. See https://bugs.chromium.org/p/chromium/issues/detail?id=960718
The tl;dr is that you call SLD and therefore start generating candidates before SRD is called.
With setTimeout you are intentionally screwing up the order. If it happens without the setTimeout... please file a bug!

> If I am a new developer reading the official webrtc.org docs

Please note that webrtc.org is not "official". In particular the codelab there contains several errors and antipatterns and clearly lacks review.

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

Received on Monday, 4 May 2020 08:12:06 UTC