我有一个webrtc应用程序,假设有两个客户端(client1
和client2
),有没有办法找出client1
提供的ICE候选者被client2
使用,反之亦然?因为每次找到这个信息,我都必须在两个客户端上使用wireshark
,我认为读取sdp
可能会有所帮助,但我错了,因为它会给出所有可能的候选项...
场景: client1
的所有UDP
端口都被阻塞(由我进行测试目的的阻塞)。
Client1的SDP:
...
a=rtcp:49407 IN IP4 <client1's IP>
a=candidate:3864409487 1 udp 2122194687 <client1's IP> 49407 typ host generation 0 // this would never work, since the udp ports are blocked...
a=candidate:3864409487 2 udp 2122194687 <client1's IP> 49407 typ host generation 0
a=candidate:2832583039 1 tcp 1518214911 <client1's IP> 0 typ host tcptype active generation 0
a=candidate:2832583039 2 tcp 1518214911 <client1's IP> 0 typ host tcptype active generation 0
a=candidate:973648460 1 udp 25042687 <TURN server IP> 64790 typ relay raddr <Proxy IP> rport 39963 generation 0
a=ice-ufrag:YSvrOiav8TglpCWD
...