Skip to content Skip to sidebar Skip to footer

Webrtc: Createoffer's Success Callback Called Twice In Chrome

I'm playing with WebRTC and following this article. Now I experiencing strange behaviour in Chrome (Mozilla work fine) - when I call createOffer I pass a success callback (named RT

Solution 1:

I already expected that this was a problem with onnegotiationneeded and yes. When you change line 37 to console.trace, you can see which code called your function createOffer():

console.trace

What you want to do is create and set an offer first, and then add the onnegotiationneeded. This will prevent any errors. As you are following a tutorial, see this working example

Post a Comment for "Webrtc: Createoffer's Success Callback Called Twice In Chrome"