RTCPeerConnection.setRemoteDescription() returns a Promise that resolves once the value of the connection's remoteDescription is successfully changed. Do I need to wait for this Promise to resolve successfully before calling RTCPeerConnection.addIceCandidate()?
Furthermore
RTCPeerConnection.addIceCandidate()
returns a Promise which is fulfilled when the candidate has been successfully added to the remote peer's description by the ICE agent. Should I wait for this Promise to resolve successfully before adding the next available candidate viaRTCPeerConnection.addIceCandidate()
or can IceCandidates be added in parallel?
Asked
Active
Viewed 238 times
0

dbotha
- 1,501
- 4
- 20
- 38
1 Answers
2
That is not necessary, see the description of the operations chain in the specification which ensures in-order execution.

Philipp Hancke
- 15,855
- 2
- 23
- 31