AWS KVS

AWS KVS,第1张

作为小白用户编译就卡出各种问题。


各种环境问题各种bug调试。


针对亚马逊的kvs 的vs2019编译去除kvs的信令服务器代码,实现自己的mqtt信令控制。


最终可以p2p发送视频数据和音频数据。


编译环境如下:

编译系统:windows10 64 

编译工具:vs2019

直接打开webrtc_answer_2019和webrtc_offer_2019目录的sln即可运行。


连接mqtt服务器,交换媒体信息sdp和网络信息candidate之后,p2p传输视频和音频数据。


音频数据20ms传输160字节,视频是H264文件读取出来传输。


下载地址:

AWSKVS(KinesisVideoStreams)之WebRTC的C库-直播技术文档类资源-CSDN下载

废话不多说直接上运行日志:

offer端的日志:

connect:121.41.51.180
rtc_sock_connect:0,1,121.41.51.180:1883
NetworkConnect:0
sock send:0,24,0
sendPacket:24,24,0
sock recv:1
sock recv:1
sock recv:2
readPacket mqttread n:2
rc from connect:0
sock send:0,43,0
sendPacket:43,43,0
sock recv:1
sock recv:1
sock recv:3
readPacket mqttread n:3
sock send:0,46,0
sendPacket:46,46,0
sock recv:1
sock recv:1
sock recv:3
readPacket mqttread n:3
sock send:0,45,0
sendPacket:45,45,0
sock recv:1
sock recv:1
sock recv:3
readPacket mqttread n:3
sock send:0,49,0
sendPacket:49,49,0
sock recv:1
sock recv:1
sock recv:45
readPacket mqttread n:45
WEBRTC_CLIENT Connection:[0159CCA0] prv:[00C54E20] videoTransCeiver:037FD150 audioTranseiver:03A322A8
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:192,168,56,1,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:192,168,2,164,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:172,30,104,1,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:169,254,241,247,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:169,254,248,192,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:2 address:0,0,0,0,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:127,0,0,1,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    socketBind(): bind() failed for ip address: 169.254.241.247, port 0 with errno 在其上下文中,该请求的地址无效。


2022-03-31 12:14:46 ERROR   createSocketConnection(): operation returned status code: 0x58000018
2022-03-31 12:14:46 WARN    socketBind(): bind() failed for ip address: 169.254.248.192, port 0 with errno 在其上下文中,该请求的地址无效。


2022-03-31 12:14:46 ERROR   createSocketConnection(): operation returned status code: 0x58000018
Create Offer... Ret:0 ========mqtt_comm_messageCallInArrived(7):CALL_IN
=======sock send:0,2662,0
sendPacket:2662,2662,0
2022-03-31 12:14:46 ERROR   iceUtilsSendData(): operation returned status code: 0x5800001a
2022-03-31 12:14:46 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x5800001a
2022-03-31 12:14:46 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x5800001a
2022-03-31 12:14:46 ERROR   iceUtilsSendData(): operation returned status code: 0x5800001a
2022-03-31 12:14:46 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x5800001a
2022-03-31 12:14:46 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x5800001a
WEBRTC_CLIENT Connection:[0159CCA0] receive candidate:{"candidate":"candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
CandidateCb:69 INFO WEBRTC[00C54E20] Candidate is Coming: {"candidate":"candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
sock send:0,198,0
sendPacket:198,198,0
WEBRTC_CLIENT Connection:[0159CCA0] receive candidate:{"candidate":"candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
CandidateCb:69 INFO WEBRTC[00C54E20] Candidate is Coming: {"candidate":"candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
sock send:0,199,0
sendPacket:199,199,0
WEBRTC_CLIENT Connection:[0159CCA0] receive candidate:{"candidate":"candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
CandidateCb:69 INFO WEBRTC[00C54E20] Candidate is Coming: {"candidate":"candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
sock send:0,198,0
sendPacket:198,198,0
2022-03-31 12:14:46 ERROR   iceUtilsSendData(): operation returned status code: 0x58000022
2022-03-31 12:14:46 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x58000022
2022-03-31 12:14:46 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x58000022
2022-03-31 12:14:46 ERROR   iceUtilsSendData(): operation returned status code: 0x58000022
2022-03-31 12:14:46 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x58000022
2022-03-31 12:14:46 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x58000022
WEBRTC_CLIENT Connection:[0159CCA0] receive candidate:{"candidate":"candidate:4 1 udp 1694498815 222.76.118.61 51196 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
CandidateCb:69 INFO WEBRTC[00C54E20] Candidate is Coming: {"candidate":"candidate:4 1 udp 1694498815 222.76.118.61 51196 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
sock send:0,200,0
sendPacket:200,200,0
WEBRTC_CLIENT Connection:[0159CCA0] receive candidate:(null)
CandidateCb:64 INFO WEBRTC[00C54E20] Candidate Ok
sock recv:1
sock recv:1
sock recv:1
sock recv:2657
readPacket mqttread n:2657
========mqtt_comm_messageAnswerSdpArrived(2616):v=0
o=- 15528 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 2
a=msid-semantic: WMS myKvsVideoStream
m=audio 9 UDP/TLS/RTP/SAVPF 0
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:31864 cname:MblXDl8jY70FZKgO
a=ssrc:31864 msid:audioStream audioTrack
a=ssrc:31864 mslabel:audioStream
a=ssrc:31864 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:4969 cname:MblXDl8jY70FZKgO
a=ssrc:4969 msid:videoStream videoTrack
a=ssrc:4969 mslabel:videoStream
a=ssrc:4969 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:2
a=sctp-port:5000

=======webrtcHandAnswer:189 INFO pucAnswer:v=0
o=- 15528 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 2
a=msid-semantic: WMS myKvsVideoStream
m=audio 9 UDP/TLS/RTP/SAVPF 0
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:31864 cname:MblXDl8jY70FZKgO
a=ssrc:31864 msid:audioStream audioTrack
a=ssrc:31864 mslabel:audioStream
a=ssrc:31864 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:4969 cname:MblXDl8jY70FZKgO
a=ssrc:4969 msid:videoStream videoTrack
a=ssrc:4969 mslabel:videoStream
a=ssrc:4969 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:2
a=sctp-port:5000


Handle Answer... Ret:0 2022-03-31 12:14:47 ERROR   iceUtilsSendData(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendData(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendData(): operation returned status code: 0x58000022
2022-03-31 12:14:47 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x58000022
2022-03-31 12:14:47 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x58000022
2022-03-31 12:14:47 ERROR   iceUtilsSendData(): operation returned status code: 0x58000022
2022-03-31 12:14:47 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x58000022
2022-03-31 12:14:47 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x58000022
ConnectStateChangeCb:122 INFO connectstatus:CONNECTING
2022-03-31 12:14:47 ERROR   deserializeStunPacket(): operation returned status code: 0x5700000e
WEBRTC_CLIENT Connection:[0159CCA0] prv:[00C54E20] StateChange
2022-03-31 12:14:47 ERROR   handleStunPacket(): operation returned status code: 0x5700000e
2022-03-31 12:14:47 ERROR   incomingDataHandler(): operation returned status code: 0x5700000e
2022-03-31 12:14:47 ERROR   deserializeStunPacket(): operation returned status code: 0x5700000e
2022-03-31 12:14:47 ERROR   handleStunPacket(): operation returned status code: 0x5700000e
2022-03-31 12:14:47 ERROR   incomingDataHandler(): operation returned status code: 0x5700000e
ConnectStateChangeCb:122 INFO connectstatus:CONNECTED
WEBRTC_CLIENT Connection:[0159CCA0] prv:[00C54E20] StateChange
sock recv:1
sock recv:1
sock recv:1
sock recv:195
readPacket mqttread n:195
========mqtt_comm_messagCandidateArrived(155):{"candidate":"candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:31864 cname:MblXDl8jY70FZKgO
a=ssrc:31864 msid:audioStream audioTrack
a=ssrc:31864 mslabel:audioStream
a=ssrc:31864 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:4969 cname:MblXDl8jY70FZKgO
a=ssrc:4969 msid:videoStream videoTrack
a=ssrc:4969 mslabel:videoStream
a=ssrc:4969 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:2
a=sctp-port:5000

=======sock recv:1
sock recv:1
sock recv:1
sock recv:196
readPacket mqttread n:196
========mqtt_comm_messagCandidateArrived(156):{"candidate":"candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:31864 cname:MblXDl8jY70FZKgO
a=ssrc:31864 msid:audioStream audioTrack
a=ssrc:31864 mslabel:audioStream
a=ssrc:31864 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:4969 cname:MblXDl8jY70FZKgO
a=ssrc:4969 msid:videoStream videoTrack
a=ssrc:4969 mslabel:videoStream
a=ssrc:4969 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:2
a=sctp-port:5000

=======sock recv:1
sock recv:1
sock recv:1
sock recv:195
readPacket mqttread n:195
========mqtt_comm_messagCandidateArrived(155):{"candidate":"candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}}.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:31864 cname:MblXDl8jY70FZKgO
a=ssrc:31864 msid:audioStream audioTrack
a=ssrc:31864 mslabel:audioStream
a=ssrc:31864 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:4969 cname:MblXDl8jY70FZKgO
a=ssrc:4969 msid:videoStream videoTrack
a=ssrc:4969 mslabel:videoStream
a=ssrc:4969 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:2
a=sctp-port:5000

=======sock recv:1
sock recv:1
sock recv:1
sock recv:197
readPacket mqttread n:197
========mqtt_comm_messagCandidateArrived(157):{"candidate":"candidate:4 1 udp 1694498815 222.76.118.61 51202 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:31864 cname:MblXDl8jY70FZKgO
a=ssrc:31864 msid:audioStream audioTrack
a=ssrc:31864 mslabel:audioStream
a=ssrc:31864 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:4969 cname:MblXDl8jY70FZKgO
a=ssrc:4969 msid:videoStream videoTrack
a=ssrc:4969 mslabel:videoStream
a=ssrc:4969 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=ice-options:trickle
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:gefe
a=ice-pwd:NlegFFr5wWH6+zzrN3qqgMPg
a=fingerprint:sha-256 3F:69:B8:63:B1:D3:E9:BA:05:EB:DA:FF:6B:CB:FD:C9:54:D3:28:85:B4:97:9A:DB:D4:E7:1D:44:7C:EF:E2:8E
a=setup:active
a=mid:2
a=sctp-port:5000

=======OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:160
OnVideoFrameCb:162 INFO recv Frame: Index:0/259741156 size:160 decodeTs:9600 pTs:9600 [fc 60 7b 5a ba 4f f1 3c]
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:548
OnVideoFrameCb:162 INFO recv Frame: Index:0/259741246 size:548 decodeTs:107999 pTs:107999 [0 0 0 1 9 30 0 0]
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:160
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:660
OnVideoFrameCb:162 INFO recv Frame: Index:0/259741246 size:660 decodeTs:109799 pTs:109799 [0 0 0 1 9 30 0 0]
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:160
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:431
OnVideoFrameCb:162 INFO recv Frame: Index:0/259741246 size:431 decodeTs:111599 pTs:111599 [0 0 0 1 9 30 0 0]
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:160
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:533
OnVideoFrameCb:162 INFO recv Frame: Index:0/259741246 size:533 decodeTs:113399 pTs:113399 [0 0 0 1 9 30 0 0]
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:160
OnVideoFrameCb:153 INFO answer OnSpeechFrameCb pstFrame:729

answer端的日志:

main_app:383 INFO Create Connectio....
2022-03-31 12:12:42 DEBUG   iceAgentValidateKvsRtcConfig():
change ticeLocalCandidateGatheringTimeout: 10000 ms
2022-03-31 12:12:42 DEBUG   iceAgentValidateKvsRtcConfig():
        iceConnectionCheckTimeout: 10000 ms
2022-03-31 12:12:42 DEBUG   iceAgentValidateKvsRtcConfig():
        iceCandidateNominationTimeout: 10000 ms
2022-03-31 12:12:42 DEBUG   iceAgentValidateKvsRtcConfig():
        iceConnectionCheckPollingInterval: 50 ms
WEBRTC_CLIENT Connection:[017659C8] prv:[01084F08] videoTransCeiver:03BD5578 audioTranseiver:03BD8328
connect:121.41.51.180
rtc_sock_connect:0,1,121.41.51.180:1883
NetworkConnect:0
sock send:0,24,0
sendPacket:24,24,0
sock recv:1
sock recv:1
sock recv:2
readPacket mqttread n:2
rc from connect:0
sock send:0,44,0
sendPacket:44,44,0
sock recv:1
sock recv:1
sock recv:3
readPacket mqttread n:3
sock send:0,45,0
sendPacket:45,45,0
sock recv:1
sock recv:1
sock recv:3
readPacket mqttread n:3
sock send:0,45,0
sendPacket:45,45,0
sock recv:1
sock recv:1
sock recv:3
readPacket mqttread n:3
sock send:0,2,0
sendPacket:2,2,0
send ping
sock recv:1
sock recv:1
recv ping
sock send:0,2,0
sendPacket:2,2,0
send ping
sock recv:1
sock recv:1
recv ping
sock recv:1
sock recv:1
sock recv:47
readPacket mqttread n:47
========mqtt_comm_messageCalloutArrived(8):CALL_OUT
=======sock send:0,47,0
sendPacket:47,47,0
sock recv:1
sock recv:1
sock recv:1
sock recv:2659
readPacket mqttread n:2659
========mqtt_comm_messageOfferSdpArrived(2619):v=0
o=- 26838 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1 2
a=msid-semantic: WMS myKvsVideoStream
m=audio 9 UDP/TLS/RTP/SAVPF 0
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:16625 cname:hJpzCBwNn5NcOJTx
a=ssrc:16625 msid:audioStream audioTrack
a=ssrc:16625 mslabel:audioStream
a=ssrc:16625 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:6349 cname:hJpzCBwNn5NcOJTx
a=ssrc:6349 msid:videoStream videoTrack
a=ssrc:6349 mslabel:videoStream
a=ssrc:6349 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:2
a=sctp-port:5000

=======Handle Offer. Gen Answer..
2022-03-31 12:14:46 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: pIGnor8hY. Ip: 172.30.104.1:51194. Type: host. Protocol: udp.
2022-03-31 12:14:46 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: AQ1s7q/To. Ip: 192.168.2.164:51193. Type: host. Protocol: udp.
2022-03-31 12:14:46 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: Mm4IxpSZz. Ip: 192.168.56.1:51192. Type: host. Protocol: udp.
2022-03-31 12:14:46 DEBUG   stepStateMachine(): State Machine - Current state: 0x0000000000000001, Next state: 0x0000000000000002
2022-03-31 12:14:46 DEBUG   iceAgentCheckConnectionStateSetup(): ice candidate pair count 0
2022-03-31 12:14:46 DEBUG   stepIceAgentStateMachine(): Ice agent state changed from ICE_AGENT_STATE_NONE to ICE_AGENT_STATE_CHECK_CONNECTION.
ConnectStateChangeCb:123 INFO connectstatus:CONNECTING
WEBRTC_CLIENT Connection:[017659C8] prv:[01084F08] StateChange
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:192,168,56,1,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:192,168,2,164,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:172,30,104,1,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:169,254,241,247,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:169,254,248,192,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:2 address:0,0,0,0,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 WARN    iceAgentStartGathering(): localNetworkInterface family:1 address:127,0,0,1,0,port:0,isPointToPoint:0
2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 WARN    socketBind(): bind() failed for ip address: 169.254.241.247, port 0 with errno 在其上下文中,该请求的地址无效。


2022-03-31 12:14:46 ERROR   createSocketConnection(): operation returned status code: 0x58000018
2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 WARN    socketBind(): bind() failed for ip address: 169.254.248.192, port 0 with errno 在其上下文中,该请求的地址无效。


2022-03-31 12:14:46 ERROR   createSocketConnection(): operation returned status code: 0x58000018
2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


2022-03-31 12:14:46 DEBUG   createSocket(): setsockopt() failed with errno 提供了一个无效的参数。


sock send:0,2660,0
sendPacket:2660,2660,0
sock recv:1
sock recv:1
sock recv:1
sock recv:195
readPacket mqttread n:195
========mqtt_comm_messagCandidateArrived(155):{"candidate":"candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:16625 cname:hJpzCBwNn5NcOJTx
a=ssrc:16625 msid:audioStream audioTrack
a=ssrc:16625 mslabel:audioStream
a=ssrc:16625 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:6349 cname:hJpzCBwNn5NcOJTx
a=ssrc:6349 msid:videoStream videoTrack
a=ssrc:6349 mslabel:videoStream
a=ssrc:6349 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:2
a=sctp-port:5000

=======2022-03-31 12:14:46 DEBUG   socketSendDataWithRetry(): sendto() failed with errno 向一个无法连接的网络尝试了一个套接字 *** 作。


2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): Close socket 720
2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): Failed to send data. Bytes sent 0. Data len 28. Retry count 0
2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): Warning: Send data failed with 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendData(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x5800001a
2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): sendto() failed with errno 向一个无法连接的网络尝试了一个套接字 *** 作。


2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): Close socket 712
2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): Failed to send data. Bytes sent 0. Data len 28. Retry count 0
2022-03-31 12:14:47 DEBUG   socketSendDataWithRetry(): Warning: Send data failed with 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendData(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 ERROR   iceUtilsSendStunPacket(): operation returned status code: 0x5800001a
2022-03-31 12:14:47 WARN    iceAgentSendStunPacket(): iceUtilsSendStunPacket failed with 0x5800001a
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New local ice candidate discovered. Id: rVdjlRnE7. Ip: 172.30.104.1:51200. Type: host. Protocol: udp.
sock recv:1
WEBRTC_CLIENT Connection:[017659C8] receive candidate:{"candidate":"candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
sock recv:1
2022-03-31 12:14:47 DEBUG   iceAgentCheckPeerReflexiveCandidate(): New remote peer reflexive candidate found
sock recv:1
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: fZ+4XiMkI. Ip: 192.168.2.164:51196. Type: prflx. Protocol: UNKNOWN.
sock recv:196
readPacket mqttread n:196
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: FO/q7l2Kk. Ip: 172.30.104.1:51200. Type: host. Protocol: udp.
========mqtt_comm_messagCandidateArrived(156):{"candidate":"candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:16625 cname:hJpzCBwNn5NcOJTx
a=ssrc:16625 msid:audioStream audioTrack
a=ssrc:16625 mslabel:audioStream
a=ssrc:16625 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:6349 cname:hJpzCBwNn5NcOJTx
a=ssrc:6349 msid:videoStream videoTrack
a=ssrc:6349 mslabel:videoStream
a=ssrc:6349 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:2
a=sctp-port:5000

=======CandidateCb:70 INFO WEBRTC[01084F08] Candidate is Coming: {"candidate":"candidate:2 1 udp 2130706431 172.30.104.1 51200 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
sock recv:1
2022-03-31 12:14:47 DEBUG   handleStunPacket(): Received STUN binding indication
sock send:0,198,0
sendPacket:198,198,0
sock recv:1
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New local ice candidate discovered. Id: uP0QAlKJ+. Ip: 192.168.2.164:51199. Type: host. Protocol: udp.
sock recv:1
WEBRTC_CLIENT Connection:[017659C8] receive candidate:{"candidate":"candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
sock recv:195
readPacket mqttread n:195
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: V+vscCdSR. Ip: 192.168.2.164:51199. Type: host. Protocol: udp.
========mqtt_comm_messagCandidateArrived(155):{"candidate":"candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}}1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:16625 cname:hJpzCBwNn5NcOJTx
a=ssrc:16625 msid:audioStream audioTrack
a=ssrc:16625 mslabel:audioStream
a=ssrc:16625 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:6349 cname:hJpzCBwNn5NcOJTx
a=ssrc:6349 msid:videoStream videoTrack
a=ssrc:6349 mslabel:videoStream
a=ssrc:6349 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:2
a=sctp-port:5000

=======CandidateCb:70 INFO WEBRTC[01084F08] Candidate is Coming: {"candidate":"candidate:1 1 udp 2130706431 192.168.2.164 51199 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
sock recv:1
2022-03-31 12:14:47 DEBUG   handleStunPacket(): received candidate with USE_CANDIDATE flag, local candidate type host.
sock send:0,199,0
sendPacket:199,199,0
sock recv:1
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New local ice candidate discovered. Id: HTEpEBNS+. Ip: 192.168.56.1:51198. Type: host. Protocol: udp.
sock recv:1
WEBRTC_CLIENT Connection:[017659C8] receive candidate:{"candidate":"candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
sock recv:197
readPacket mqttread n:197
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: qS+tThkJ8. Ip: 192.168.56.1:51198. Type: host. Protocol: udp.
CandidateCb:70 INFO WEBRTC[01084F08] Candidate is Coming: {"candidate":"candidate:0 1 udp 2130706431 192.168.56.1 51198 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0} , addStatus:0
========mqtt_comm_messagCandidateArrived(157):{"candidate":"candidate:4 1 udp 1694498815 222.76.118.61 51196 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999","sdpMid":"0","sdpMLineIndex":0}
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:audioStream audioTrack
a=ssrc:16625 cname:hJpzCBwNn5NcOJTx
a=ssrc:16625 msid:audioStream audioTrack
a=ssrc:16625 mslabel:audioStream
a=ssrc:16625 label:audioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:0 PCMU/8000
a=rtcp-fb:0 nack
m=video 9 UDP/TLS/RTP/SAVPF 125
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:videoStream videoTrack
a=ssrc:6349 cname:hJpzCBwNn5NcOJTx
a=ssrc:6349 msid:videoStream videoTrack
a=ssrc:6349 mslabel:videoStream
a=ssrc:6349 label:videoTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=ice-options:trickle
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:125 H264/90000
a=fmtp:125 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:125 nack
m=application 9 UDP/DTLS/SCTP webrtc-datachannel
c=IN IP4 127.0.0.1
a=candidate:2 1 udp 2130706431 172.30.104.1 51194 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 2130706431 192.168.2.164 51193 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 2130706431 192.168.56.1 51192 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ZUvj
a=ice-pwd:qfR6r2wf8JfnmZdqreUz9Smz
a=fingerprint:sha-256 0F:BB:36:93:7D:88:30:44:84:B2:1B:D8:F0:F9:E2:93:68:9D:84:D3:E6:9D:47:69:32:37:AA:D1:28:EE:DA:7B
a=setup:actpass
a=mid:2
a=sctp-port:5000

=======sock send:0,198,0
2022-03-31 12:14:47 DEBUG   iceAgentLogNewCandidate(): New remote ice candidate discovered. Id: fOeFAwsEG. Ip: 222.76.118.61:51196. Type: srflx. Protocol: udp.
sendPacket:198,198,0
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:192.168.56.1.0:65223 ,remote iceCandidateType:0,isRemote:1,ip:192.168.56.1.0:65223
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:192.168.2.164.0:65479 ,remote iceCandidateType:0,isRemote:1,ip:192.168.56.1.0:65223
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:172.30.104.1.0:200 ,remote iceCandidateType:0,isRemote:1,ip:192.168.56.1.0:65223
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:192.168.56.1.0:65223 ,remote iceCandidateType:0,isRemote:1,ip:192.168.2.164.0:65479
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:192.168.2.164.0:65479 ,remote iceCandidateType:0,isRemote:1,ip:192.168.2.164.0:65479
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:172.30.104.1.0:200 ,remote iceCandidateType:0,isRemote:1,ip:192.168.2.164.0:65479
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:192.168.56.1.0:65223 ,remote iceCandidateType:0,isRemote:1,ip:172.30.104.1.0:200
2022-03-31 12:14:47 DEBUG   fromCheckConnectionIceAgentState(): fromCheckConnectionIceAgentState local iceCandidateType:0,isRemote:0,ip:192.168.2.164.0:65479 ,remote iceCandidateType:0,isRemote:1,ip:172.30.104.1.0:200

 

GitHub - awslabs/amazon-kinesis-video-streams-webrtc-sdk-c: Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams. - GitHub - awslabs/amazon-kinesis-video-streams-webrtc-sdk-c: Amazon Kinesis Video Streams Webrtc SDK is for developers to install and customize realtime communication between devices and enable secure streaming of video, audio to Kinesis Video Streams.https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/562777.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-02
下一篇 2022-04-02

发表评论

登录后才能评论

评论列表(0条)

保存