AppRTCDemo
AppRTCDemo copied to clipboard
Time out after a few second
I run the demo with my own server. at first it works well, but after a few second. there comes(something like) a very high delay.
Here is the log: Jingle:Conn[audio:8K3dFDtO:1:0:local:udp:192.168.121.119:65072->:1:0:local:udp:192.168.121.107:64946|CR-I|-]: Timed out after 32046 ms without a response, rtt=3000
can you help me or just tell me some possible reasons. thank u ?
I found that in the protocol method[- (void)peerConnection:(RTCPeerConnection *)peerConnection iceConnectionChanged:(RTCICEConnectionState)newState] that when RTCICEConnectionState change to RTCICEConnectionDisconnected , then comes the time out.
The state changes frequently may because of the poor network...
any goood ideas?
In this demo, I custom-make a signaling
type XMPPMessage to transfer the signallings. Before run this demo, Please Check whether your jabber server can support this custom XMPPMessage. If your jabber server cann't support it, you should modify the custom XMPPMessage's type that your jabber server can support in the XMPPMessage+Signaling
file.