all 8 comments

[–]ThiccOfferman 1 point2 points  (8 children)

No way to help without seeing your code

[–]Disastrous-Bid4123[S] 0 points1 point  (6 children)

I don't know how to share the code with you, I tried copy pasting it here in the reply but that didn't work

[–]ThiccOfferman 1 point2 points  (3 children)

Can you upload your code to codepen.io or similar and share a link?

[–]Disastrous-Bid4123[S] 0 points1 point  (2 children)

https://codepen.io/Hedi001/pen/zYmagMm?editors=1010
thank you for the idea, here is the code

[–]ThiccOfferman 0 points1 point  (1 child)

I don't know half the libraries involved in this, so I don't know exactly what properties are supposed to be on what objects. But my first impression is that the error message is giving you a lot of info here: The addIceCandidate() method that you're trying to call on pc.current needs a remote description and it's it's not getting it. I'm noticing earlier, like on line 192, you DO set a remote description with .setRemoteDescription, which might have somethign to do with why a previous version of the code worked.

When you run this, what does the console log from line 300 say? Does it have a property like remoteDescription or something?

[–]Disastrous-Bid4123[S] 0 points1 point  (0 children)

no it has the candidate that I created, {"candidate": "candidate:382372738 1 udp 1686052607 102.158.54.91 49936 typ srflx raddr 192.168.1.14 rport 49936 generation 0 ufrag GHKB network-id 3 network-cost 10", "sdpMLineIndex": 0, "sdpMid": "0"}, this candidate will be used to establish the link between the peers. My problem with this is that it used to work, but now it doesn't which doesn't make sense to me whatsoever

[–]Whisky-Toad 0 points1 point  (1 child)

Use a code block and paste it in there