Vinay
Vinay

Reputation: 1304

offer created again after setting remote answer sdp webrtc android

I created an offer and sent it.I successfully received remote answer sdp and set it as remote description but as setting the remote answer sdp a new offer is again created and sent and new answer sdp is received. This cycle is going on. What could be the reason?

Thanks in Advance

Upvotes: 1

Views: 1277

Answers (1)

Alexey Ershov
Alexey Ershov

Reputation: 176

If all callbacks are implemented correctly, such behavior should not happen. Check the sequence of your actions:

  1. Create OFFER
  2. Set it as local description (in onCreateSuccess callback) (this is probably the step you missed)
  3. Send it to the other side via some signaling (in onSetSuccess callback)
  4. Receive ANSWER from the other side
  5. Set it as remote description

If you think that you do exactle the same, and the problem is still there, please post some code.

Upvotes: 1

Related Questions