Are IceCandidate and SDP fixed values? Is this a good idea to store them in a server database instead of retrieving on every connection? If updating these data is unavoidable, when should I do it?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
No they are not. Ice candidates contain end point's IP and port combination which can change. Even if you have a static IP address a new port number is generated every time.
No they are not fixed values. Ice candidates locate the user in the network topology they reside in at present, which unless you have a static IP (which almost nobody has) AND a wired internet connection AND a static LAN address, AND a desktop computer that connects solely through these means and never also through, say, wifi, then this will likely change hourly, daily or weekly.
SDP additionally contains the media-setup for a call and other information, which can change from call to call, and even mid-call (requiring re-negotiation) if video or audio sources are added, removed or altered during the call. SDP may additionally contain other things that expire, but hopefully this is enough to dissuade you.