我应该等待 RTCPeerConnection.setRemoteDescription() & RTCPeerConnection.addIceCandidate() Promises 解决吗?

Should I wait for RTCPeerConnection.setRemoteDescription() & RTCPeerConnection.addIceCandidate() Promises to settle?

  1. RTCPeerConnection.setRemoteDescription() returns 一旦成功更改连接的 remoteDescription 的值,就会解析的 Promise。我是否需要等待此 Promise 成功解决后再调用 RTCPeerConnection.addIceCandidate()?

  2. 此外 RTCPeerConnection.addIceCandidate() returns 一个 Promise,当候选人已被 ICE 代理成功添加到远程对等点的描述时,该 Promise 就会实现。在通过 RTCPeerConnection.addIceCandidate() 添加下一个可用候选之前,我应该等待此 Promise 成功解决,还是可以并行添加 IceCandidates?

这不是必需的,请参阅确保 in-order 执行的操作链 in the specification 的描述。