如何在WebRTC应用程序中正确调整Turn Server的网络?(How to properly tune network for Turn Server in a WebRTC applicati

系统教程 行业动态 更新时间:2024-06-14 16:59:47
如何在WebRTC应用程序中正确调整Turn Server的网络?(How to properly tune network for Turn Server in a WebRTC application?)

我正在研究用于音频/图片通信的WebRTC解决方案,并且当局域网中的两个同事进行通信时,我有点担心缺少带宽控制。

基本上我希望能够为我的交换机分配带宽优先级并预先分配WebRTC呼叫。 但是我看不到在P2P呼叫中过滤数据包的正确方法。

另外,由于此操作可能会造成延迟,因此我不想对数据包进行解码。

我希望你们能以正确的方式告诉我,或者告诉我,我的解决方案能否奏效。

我不是100%肯定我计划测试的想法,因为我不知道TURN服务器如何在内部工作。

但这是一个想法:

而我不知道的是: 是否有可能让2台服务器相互认识? 他们会像来电者之间的2层代理一样工作吗? 如果是的话,你能告诉我为了使它工作我需要做些什么吗?

I'm working on a WebRTC solution for audio/picture comunication and I'm a bit concerned about the lack of bandwidth control when two Peers in LAN are communicating.

Basically I want to be able to prioritize and pre-allocate bandwidth on my switch for WebRTC calls. But I couldn't see a proper way of filtering the packets when they are in a P2P call.

Also, I don't want to decode the packet to do that, because of the possible delay caused by this operation.

I hope you guys can show me a proper way or just tell me if my teorical solution could work.

I'm not 100% sure about the idea I'm planning to test, because I don't know how TURN server works internally.

But here is the idea:

And what I dont know is: Is it possible to make 2 turn servers know each other? Would they work like a 2 layer proxy between callers? If yes, could you please show me what I have to do to make it work?

最满意答案

只需将内部代理服务器安装到外部转向服务器,并在您的局域网上优先使用代理服务器。

(在意识到解决方案比我想象的容易之后回答我自己的问题)

Just install a internal proxy server to the external turn server and prioritize the proxy on your lan.

(answering my own question after realizing the solution was easier than I thought)

更多推荐

本文发布于:2023-04-17 09:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/bc9c60c869c9b4f76b76027685b0ef8c.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   正确   如何在   网络   WebRTC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!