I'm using webRTC to build a system which supports audio calls. Here's how it works:
- User A createOffer
, then setLocalDescription
with the offer
- User B receiveOffer
, then setRemoteDescription
with the offer
- User B createAnswer
, then setLocalDescription
with the answer
- User A receiveAnswer
, then setRemoteDescription
with the answer
The problem is that, after A received answer from B, when A does setRemoteDescription(answer)
, this error appears:
Uncaught (in promise) DOMException: Failed to set remote answer sdp: Failed to push down transport description: Failed to set SSL role for the channel.
I have no clue why this error appears. I tried googling it but no luck so far. Any help would be appreciated !