rfc5766-turn-server 作为 webrtc 应用程序的 TURN 和 STUN [英] rfc5766-turn-server as TURN and STUN for webrtc application

查看:30
本文介绍了rfc5766-turn-server 作为 webrtc 应用程序的 TURN 和 STUN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了 rfc5766-turn-server 并让它在我自己的服务器上运行.在应用程序中,我设置:

I have implemented rfc5766-turn-server and have it running on my own server. in the app, I set :

pc_config = {"iceServers": [{"url":"turn:username@<turn_server_address>", "credential":"password"}]};

它似乎有效,但我有几个问题:

it seems to be working, but I have couple of questions:

  1. 正在以这种方式设置应用程序,使用 rfc5766-turn-server 足以充当 TURN 和 STUN 服务器还是我还需要运行一个 stun 服务器.

回合服务器也是眩晕的,所以 rfc5766-turn-server 是否可以作为眩晕服务器(在大多数情况下)和需要时的回合服务器?

a turn server is also stun so will the rfc5766-turn-server function as a stun server (on most cases) and a turn server when needed?

  1. 出于测试目的,使用应用程序中提供的用户名和密码似乎可以正常工作,但最终当应用程序投入生产并且有很多用户时,是否所有用户都对 TURN 服务器使用相同的用户名/密码??

希望我的问题有意义...

hope my question make sense...

谢谢

推荐答案

  1. 是的,该服务器将首先尝试充当眩晕服务器(您可以通过这种方式对其进行配置),但如果失败,它将作为转向服务器运行.
  2. 您想要的方式.您可以拥有静态长期凭据或配置 TURN REST API(他们支持).
  1. Yes, that server will try to act as a stun server first(you can configure it that way) but if that fails it will run work as a turn server.
  2. Which ever way you want. You can have static long-term credentials or configure TURN REST API(which they support).

这篇关于rfc5766-turn-server 作为 webrtc 应用程序的 TURN 和 STUN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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