- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
自建了turn服务器在公网上,SDK3.0
同一地点wifi 环境,两台android设备P2P连接很快,视频也很正常。
两台android设备放不同地点,通过wifi p2p视频,连接10有9连接不上。wifi网络都很好。
这个是否turn服务器哪个参数需要调整?或者turn服务器配置需要在哪方面注意?
帮忙解答。谢谢。
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
补充:
turn配置如下:
Listening-port=3478
deamon=true
listening-ip=60.2*.*.*
external-ip=60.2*.*.*
//以上两个ip相同
lt-cred-mech
android设备端iceServer代码: "turn:60.2*.*.*:3478"
帮忙看一下是否要补充 配置?
我看示例:
"stun:61.152.239.60"
"turn:61.152.239.60:4478?transport=udp", "woogeen", "master"
"turn:61.152.239.60:4478?transport=tcp", "woogeen","master"
请提供一下turnServer的这个配置,以供参考。谢谢。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
iceServer要自己配置。 在内网下不需要这个,外网下需要搭建turn服务器,配置到客户端和服务器中。
给你两个个链接:
https://github.com/coturn/coturn/wiki
http://www.cnblogs.com/lingdhox/p/4209659.html
这里有针对webRTC的turn服务器的搭建和配置教程
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
turn在webRTC的客户端中对ice配置就可以了。 主要做一个NAT/防火墙的穿透技术。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Guangming. @Allan, 能解决问题不?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page