Reputation: 87
I was wondering whether it's possible to use hard coded information in order to establish WebRTC peer connection. I have tried recording the offer, answer and candidates of a normal WebRTC that works well, and then hardcode that info (so there will be no need for the signaling server next time). Unfortunately, it didn't work. Is there a way to hardcode this information and use it in that manner?
Upvotes: 1
Views: 302
Reputation: 3489
It doesn't work that way. Every time peers do data exchange via signaling server (using SDP, in particular) before they could establish direct connection; this data includes network options, media options, possible encryption-related options, etc. So, it just doesn't make sense to hardcode all this data - it mostly contains "one-time" option values.
Upvotes: 1