IceCandidate 和 SDP 是静态的吗? [英] Are IceCandidate and SDP static?

查看:30
本文介绍了IceCandidate 和 SDP 是静态的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IceCandidate 和 SDP 是固定值吗?将它们存储在服务器数据库中而不是在每个连接上检索是否是个好主意?如果更新这些数据是不可避免的,我应该什么时候做?

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?

推荐答案

不,它们不是固定值.Ice 候选者在他们目前所在的网络拓扑中定位用户,除非你有一个静态 IP(几乎没有人有)和一个有线互联网连接和一个静态 LAN 地址,以及一台台式计算机仅通过这些方式进行连接,而绝不会通过 wifi 连接,那么这可能每小时、每天或每周都会发生变化.

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 还包含通话的媒体设置和其他信息,如果在通话过程中添加、删除或更改视频或音频源,这些信息可能会随通话而变化,甚至通话中(需要重新协商).SDP 可能还包含其他过期的内容,但希望这足以劝阻您.

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.

这篇关于IceCandidate 和 SDP 是静态的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆