I am using the AWS Kinesis SDK to connect the react-native-webrtc as a viewer to the stream. I am getting the following error when I connect to it. But I notice on the server side the frames are being sent. But I am not able to consume them on the viewer side. I get the following error:
“Failed to set remote answer sdp: The order of m-lines in answer doesn’t match order in offer. Rejecting answer.”
[Mon Nov 30 2020 17:54:08.471] WARN [KVS] ClientId: b25dbb6c-9006-4a4a-bacf-af965aefdc89
[Mon Nov 30 2020 17:54:08.830] LOG [KVS] Connected to signaling service
[Mon Nov 30 2020 17:54:08.830] LOG [KVS] Creating SDP offer
[Mon Nov 30 2020 17:54:08.891] LOG [KVS] Sending SDP offer
[Mon Nov 30 2020 17:54:08.891] LOG [KVS] Generating ICE candidates
[Mon Nov 30 2020 17:54:08.902] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:2635117144 1 udp 2122194687 192.168.86.76 45768 typ host generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 0, "sdpMid": "audio"}
[Mon Nov 30 2020 17:54:08.904] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:08.904] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:2635117144 1 udp 2122194687 192.168.86.76 48630 typ host generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 1, "sdpMid": "video"}
[Mon Nov 30 2020 17:54:08.904] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:08.965] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:842163049 1 udp 1685987071 76.103.37.21 45768 typ srflx raddr 192.168.86.76 rport 45768 generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 0, "sdpMid": "audio"}
[Mon Nov 30 2020 17:54:08.973] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:08.973] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:842163049 1 udp 1685987071 76.103.37.21 48630 typ srflx raddr 192.168.86.76 rport 48630 generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 1, "sdpMid": "video"}
[Mon Nov 30 2020 17:54:08.973] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.400] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:3549646504 1 tcp 1518280447 192.168.86.76 9 typ host tcptype active generation 0 ufrag bP7G network-id 4 network-cost 10", "sdpMLineIndex": 0, "sdpMid": "audio"}
[Mon Nov 30 2020 17:54:09.400] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.230] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:3549646504 1 tcp 1518280447 192.168.86.76 9 typ host tcptype active generation 0 ufrag bP7G network-id 4 network-cost 10", "sdpMLineIndex": 1, "sdpMid": "video"}
[Mon Nov 30 2020 17:54:09.230] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.560] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:1041082791 1 udp 41821183 35.166.22.26 53890 typ relay raddr 76.103.37.21 rport 45768 generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 0, "sdpMid": "audio"}
[Mon Nov 30 2020 17:54:09.560] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.880] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:2318224576 1 udp 41820415 54.202.137.107 55326 typ relay raddr 76.103.37.21 rport 45768 generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 0, "sdpMid": "audio"}
[Mon Nov 30 2020 17:54:09.880] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.980] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:2318224576 1 udp 41820415 54.202.137.107 54313 typ relay raddr 76.103.37.21 rport 48630 generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 1, "sdpMid": "video"}
[Mon Nov 30 2020 17:54:09.980] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.121] LOG [KVS] RTCPeerConnection.on - icecandidate {"candidate": "candidate:1041082791 1 udp 41821183 35.166.22.26 55624 typ relay raddr 76.103.37.21 rport 48630 generation 0 ufrag bP7G network-id 3 network-cost 10", "sdpMLineIndex": 1, "sdpMid": "video"}
[Mon Nov 30 2020 17:54:09.123] LOG [KVS] Sending ICE candidate
[Mon Nov 30 2020 17:54:09.509] LOG [KVS] SignalingClient.on - sdpAnswer {"sdp": "v=0
o=- 1043438979 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=msid-semantic: WMS myKvsVideoStream
m=audio 9 UDP/TLS/RTP/SAVPF 111
c=IN IP4 127.0.0.1
a=candidate:3 1 udp 655605 54.244.158.6 52208 typ relay raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:2 1 udp 655605 54.244.158.6 49374 typ relay raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 658205 50.230.227.227 24467 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 658881 172.17.0.10 33819 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:myKvsVideoStream myAudioTrack
a=ssrc:2056374856 cname:IPicIq9LmPU4+HOc
a=ssrc:2056374856 msid:myKvsVideoStream myAudioTrack
a=ssrc:2056374856 mslabel:myKvsVideoStream
a=ssrc:2056374856 label:myAudioTrack
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:lize
a=ice-pwd:lQVqrDkEGLSc8OGyVg1CAHMJ
a=ice-options:trickle
a=fingerprint:sha-256 0B:CC:4A:B4:0F:64:20:AF:C6:3E:1B:EF:15:67:99:34:87:2F:B3:6C:67:AB:89:B7:D4:93:4C:F6:52:92:1A:3C
a=setup:active
a=mid:0
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 nack
m=video 9 UDP/TLS/RTP/SAVPF 100 101
c=IN IP4 127.0.0.1
a=candidate:3 1 udp 655605 54.244.158.6 52208 typ relay raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:2 1 udp 655605 54.244.158.6 49374 typ relay raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:1 1 udp 658205 50.230.227.227 24467 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=candidate:0 1 udp 658881 172.17.0.10 33819 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999
a=msid:myKvsVideoStream myVideoTrackRTX
a=ssrc-group:FID 1298358310 87511345
a=ssrc:1298358310 cname:IPicIq9LmPU4+HOc
a=ssrc:1298358310 msid:myKvsVideoStream myVideoTrack
a=ssrc:1298358310 mslabel:myKvsVideoStream
a=ssrc:1298358310 label:myVideoTrack
a=ssrc:87511345 cname:IPicIq9LmPU4+HOc
a=ssrc:87511345 msid:myKvsVideoStream myVideoTrackRTX
a=ssrc:87511345 mslabel:myKvsVideoStreamRTX
a=ssrc:87511345 label:myVideoTrackRTX
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:lize
a=ice-pwd:lQVqrDkEGLSc8OGyVg1CAHMJ
a=ice-options:trickle
a=fingerprint:sha-256 0B:CC:4A:B4:0F:64:20:AF:C6:3E:1B:EF:15:67:99:34:87:2F:B3:6C:67:AB:89:B7:D4:93:4C:F6:52:92:1A:3C
a=setup:active
a=mid:1
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:100 H264/90000
a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtcp-fb:100 nack
", "type": "answer"}
[Mon Nov 30 2020 17:54:11.552] WARN Possible Unhandled Promise Rejection (id: 0):
"Failed to set remote answer sdp: The order of m-lines in answer doesn't match order in offer. Rejecting answer."
[Mon Nov 30 2020 17:54:48.708] LOG [KVS] All ICE candidates have been generated