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

iOS SDK for interfacing with the Amazon Kinesis Video Streams Signaling Service.
Apache License 2.0
66 stars 29 forks source link

the demo cannot work between Embedded SDK master and iOS device #26

Closed HiLittlePiper closed 3 years ago

HiLittlePiper commented 3 years ago

Hi all,

this demo built P2P Streaming between two iOS devices successfully, but it failed between Embedded SDK master and iOS device, I integrated the Embedded SDK into IP camera. By the iOS log, it looks like the candidate cannot be received from the camera, and from the camera log, it looks like the IceAgent failed. please kindly advise this, or could you please add a specific iOS demo to adapt Embedded SDK master

020-12-30 10:34:15 DEBUG turnConnectionHandleStun(): Channel bind succeeded with peer 18.218.208.89, port: 51954, channel number 16389 2020-12-30 10:34:15 DEBUG turnConnectionHandleStun(): Channel bind succeeded with peer 18.218.208.89, port: 60904, channel number 16390 2020-12-30 10:34:15 DEBUG turnConnectionHandleStun(): Channel bind succeeded with peer 18.218.208.89, port: 53673, channel number 16391 2020-12-30 10:34:15 DEBUG turnConnectionHandleStun(): Channel bind succeeded with peer 3.129.59.42, port: 65476, channel number 16392 2020-12-30 10:34:15 DEBUG turnConnectionHandleStun(): Channel bind succeeded with peer 3.129.59.42, port: 54198, channel number 16393 2020-12-30 10:34:15 DEBUG lwsWssCallbackRoutine(): Client receive 2020-12-30 10:34:16 DEBUG turnConnectionStepState(): TurnConnection state changed from TURN_STATE_CREATE_PERMISSION to TURN_STATE_BIND_CHANNEL 2020-12-30 10:34:16 DEBUG turnConnectionStepState(): TurnConnection state changed from TURN_STATE_CREATE_PERMISSION to TURN_STATE_BIND_CHANNEL 2020-12-30 10:34:19 DEBUG sessionCleanupWait(): >>>Number of sessions 1 2020-12-30 10:34:19 DEBUG sessionCleanupWait(): ---session [0] peerid : a3706a23-40b7-4319-afeb-2462ae3870a2 2020-12-30 10:34:19 DEBUG turnConnectionStepState(): TurnConnection state changed from TURN_STATE_BIND_CHANNEL to TURN_STATE_READY 2020-12-30 10:34:19 DEBUG turnConnectionStepState(): TurnConnection state changed from TURN_STATE_BIND_CHANNEL to TURN_STATE_READY 2020-12-30 10:34:24 DEBUG lwsWssCallbackRoutine(): Client is writable 2020-12-30 10:34:24 DEBUG sessionCleanupWait(): >>>Number of sessions 1 2020-12-30 10:34:24 DEBUG sessionCleanupWait(): ---session [0] peerid : a3706a23-40b7-4319-afeb-2462ae3870a2 2020-12-30 10:34:29 DEBUG sessionCleanupWait(): >>>Number of sessions 1 2020-12-30 10:34:29 DEBUG sessionCleanupWait(): ---session [0] peerid : a3706a23-40b7-4319-afeb-2462ae3870a2 2020-12-30 10:34:33 DEBUG stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000040 2020-12-30 10:34:33 ERROR executeFailedIceAgentState(): IceAgent failed with 0x5a00000d 2020-12-30 10:34:33 DEBUG stepIceAgentStateMachine(): Ice agent state changed from ICE_AGENT_STATE_CHECK_CONNECTION to ICE_AGENT_STATE_FAILED. 2020-12-30 10:34:33 INFO onConnectionStateChange(): New connection state 5 2020-12-30 10:34:33 DEBUG sessionCleanupWait(): >>>Number of sessions 1 2020-12-30 10:34:33 DEBUG sessionCleanupWait(): ---session [0] peerid : a3706a23-40b7-4319-afeb-2462ae3870a2 2020-12-30 10:34:33 DEBUG freeSampleStreamingSession(): Freeing streaming session with peer id: a3706a23-40b7-4319-afeb-2462ae3870a2 2020-12-30 10:34:33 DEBUG socketConnectionClosed(): Close socket 33 2020-12-30 10:34:33 DEBUG socketConnectionClosed(): Close socket 32 2020-12-30 10:34:33 DEBUG socketConnectionClosed(): Close socket 31 2020-12-30 10:34:33 DEBUG turnConnectionStepState(): TurnConnection state changed from TURN_STATE_READY to TURN_STATE_CLEAN_UP 2020-12-30 10:34:33 DEBUG turnConnectionStepState(): TurnConnection state changed from TURN_STATE_READY to TURN_STATE_CLEAN_UP 2020-12-30 10:34:34 WARN iceAgentShutdown(): TurnConnection shutdown did not complete within 1 seconds 2020-12-30 10:34:34 DEBUG socketConnectionClosed(): Close socket 35 2020-12-30 10:34:34 DEBUG socketConnectionClosed(): Close socket 34 2020-12-30 10:34:35 DEBUG lwsWssCallbackRoutine(): Client is writable 2020-12-30 10:34:35 DEBUG genCerts(): >>>>>>>>>>>>>>>>> start generating certs 2020-12-30 10:34:35 DEBUG genCerts(): >>>>>>>>>>>>>>>>> completed generating certs 2020-12-30 10:34:40 DEBUG sessionCleanupWait(): >>>Number of sessions 0 2020-12-30 10:34:45 DEBUG lwsWssCallbackRoutine(): Client is writable 2020-12-30 10:34:45 DEBUG sessionCleanupWait(): >>>Number of sessions 0

thanks

MushMal commented 3 years ago

It is designed to work with any other client. Looks like a networking issue. Search the GitHub issues in the embedded sdk repository to get some info from other instances of the similar cases people have hit and get some tips on how to debug. Please resolve this issue unless you have a targeted question and not a generic question

HiLittlePiper commented 3 years ago

thanks for comments, i will refer to the embedded sdk to try it again.