awslabs / amazon-kinesis-video-streams-webrtc-sdk-android

Android SDK for interfacing with Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
58 stars 37 forks source link

Failed to set remote answer sdp when running in Tablet #68

Closed ronbarrera closed 2 years ago

ronbarrera commented 3 years ago

I modified this to only received video and audio from the master and android app as viewer, however when running the app in a tablet, I get the following error:

E/KinesisVideoSdpObserver: onSetFailure(): Error=Failed to set remote answer sdp: Failed to set remote video description send parameters.

The offer I'm sending is the following:

o=- 122041847805389901 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE 0 a=msid-semantic: WMS m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 c=IN IP4 0.0.0.0 a=rtcp:9 IN IP4 0.0.0.0 a=ice-ufrag:DOJS a=ice-pwd:zz+0502RTQqMjWhQBF3HsVaA a=ice-options:trickle renomination a=fingerprint:sha-256 6E:BB:A9:27:51:41:9D:62:0B:0E:94:D8:3C:98:F3:F9:29:41:19:5B:51:91:9A:6E:44:67:DA:C7:4B:30:9C:6B a=setup:actpass a=mid:0 a=extmap:14 urn:ietf:params:rtp-hdrext:toffset a=extmap:13 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:12 urn:3gpp:video-orientation a=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01 a=extmap:11 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing a=extmap:8 http://tools.ietf.org/html/draft-ietf-avtext-framemarking-07 a=extmap:9 http://www.webrtc.org/experiments/rtp-hdrext/color-space a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id a=extmap:5 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id a=recvonly a=rtcp-mux a=rtcp-rsize a=rtpmap:96 VP8/90000 a=rtcp-fb:96 goog-remb a=rtcp-fb:96 transport-cc a=rtcp-fb:96 ccm fir a=rtcp-fb:96 nack a=rtcp-fb:96 nack pli a=rtpmap:97 rtx/90000 a=fmtp:97 apt=96 a=rtpmap:98 VP9/90000 a=rtcp-fb:98 goog-remb a=rtcp-fb:98 transport-cc a=rtcp-fb:98 ccm fir a=rtcp-fb:98 nack a=rtcp-fb:98 nack pli a=rtpmap:99 rtx/90000 a=fmtp:99 apt=98 a=rtpmap:100 red/90000 a=rtpmap:101 rtx/90000 a=fmtp:101 apt=100 a=rtpmap:127 ulpfec/90000

and the answer from master is:

o=- 987943402 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE 0 a=msid-semantic: WMS myKvsVideoStream m=video 9 UDP/TLS/RTP/SAVPF 0 c=IN IP4 127.0.0.1 a=candidate:3 1 udp 16777215 0000:0000:0000:0000:0000:0000:0000:0000 0 typ relay raddr ::/0 rport 0 generation 0 network-cost 999 a=candidate:2 1 udp 16777215 0000:0000:0000:0000:0000:0000:0000:0000 0 typ relay raddr ::/0 rport 0 generation 0 network-cost 999 a=candidate:1 1 udp 1694498815 192.168.87.103 41861 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999 a=candidate:0 1 udp 2130706431 192.168.87.103 35506 typ host raddr 0.0.0.0 rport 0 generation 0 network-cost 999 a=msid:myKvsVideoStream myVideoTrack a=ssrc:1350595444 cname:65GUBRAh5TBVrIug a=ssrc:1350595444 msid:myKvsVideoStream myVideoTrack a=ssrc:1350595444 mslabel:myKvsVideoStream a=ssrc:1350595444 label:myVideoTrack a=rtcp:9 IN IP4 0.0.0.0 a=ice-ufrag:O6Ah a=ice-pwd:WgJWQO6Oqq5Ue+/9Jb1d7F/E a=ice-options:trickle a=fingerprint:sha-256 A8:18:A1:5F:5D:C1:D7:F3:62:E8:3C:4B:9C:8C:3B:2D:42:CB:3B:C3:C4:81:18:84:9C:7A:86:13:24:60:E9:63 a=setup:active a=mid:0 a=sendonly a=rtcp-mux a=rtcp-rsize a=rtpmap:0 H264/90000 a=rtcp-fb:0 nack a=rtcp-fb:0 goog-remb a=rtcp-fb:0 transport-cc

I've enabled ENABLE_H264_HIGH_PROFILE to true and false to test, but I get the same error. Anyone have an idea about this issue?

ronbarrera commented 2 years ago

The problem was with the master device not the android client app

CatsNipYummy commented 2 years ago

@ronbarrera can you tell me what exactly was the issue on the master side? I might be facing a similar problem

ronbarrera commented 2 years ago

@CatsNipYummy, sorry for the late response, honestly not sure, I wasn't working on the master side, but I think they updated webrtc on their end, I will try to find out more info and post it here.