webrtc

参考
ice服务器 coturn
https://github.com/coturn/coturn

1
2
3
turnserver -o -a -f -v --mobility -m 10 --max-bps=100000 --min-port=32355 --max-port=65535 --user=ling:ling1234 --user=ling2:ling1234 -r demo

turnserver -o -a -f -user=llc:123123 -r demo
1
2
3
4
5
6
7
8
9
10
11
12
listening-port=3478
external-ip=47.89.19.250
user=llc:123123
realm=ice.doee.cc

cert=/etc/letsencrypt/live/ice.doee.cc/fullchain.pem
pkey=/etc/letsencrypt/live/ice.doee.cc/privkey.pem

cli-password=123xyz

IceServer turnIceServer = new IceServer("turn:47.89.19.250:3478","llc","123123");
IceServer stunIceServer = new IceServer("stun:47.89.19.250:19302","","");

ice 测试
https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

webrtc 资料
https://webrtc.github.io/samples/

iOS
https://cocoapods.org/pods/GoogleWebRTC