【发布时间】:2014-04-09 15:35:06
【问题描述】:
我正在开发一个 webrtc 应用程序,并且必须实现以下 TURN 服务器。
https://code.google.com/p/rfc5766-turn-server/
我正在学习本教程。
http://www.dialogic.com/den/developer_forums/f/71/t/10238.aspx
它说在创建 RTCPeerConnection 的 javascript 代码中引用 TURN 服务器,如下所示。
var pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"},
{"url":"turn:<turn_server_ip_address>", "username":"my_username", "credential":"my_password"}]};
pc_new = new webkitRTCPeerConnection(pc_config);
我有点困惑,为什么我们要引用 Google 的公共 STUN 服务器。我以为 RFC5766 TURN 服务器里面有 STUN。
RFC5766 是否只是 TURN 服务器?而不是 STUN 服务器?我们不能使用 Google 提供的 STUN 服务器来实现我们自己的 STUN 服务器吗?
对不起,这么幼稚的问题。我是 WebRTC 新手。
谢谢。
【问题讨论】:
标签: webrtc stun rfc5766turnserver turn