Are IceCandidate and SDP static?

*爱你&永不变心* 提交于 2019-12-13 02:08:52

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/29390356/are-icecandidate-and-sdp-static

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!