flutter-webrtc icon indicating copy to clipboard operation
flutter-webrtc copied to clipboard

To long time connected on LTE mobile data

Open alexzh16 opened this issue 2 years ago • 2 comments

Describe the bug I connected one mobile device to WIFI connection and other device to mobile data or connected both mobile devices to mobile data. Then I make a call and accept from the other side. Signalling is working fine, but streaming is connected too long time (from 5 to 40 seconds). If I connected one simulator device to WIFI MacBook and other iPhone device to mobile data. Then I make a call and accept from the other side. But streaming is connect better from 5 to 25 seconds.

Turn server working fine.

To Reproduce Get two devices. Connect one device with WIFI and the other device with mobile data (4g or 5g). Then make a call from one end and you will see streaming is not happening.

[log] 10:51:32 Got new remote ICE candidate: {"sdpMLineIndex":0,"candidate":"candidate:1488258079 1 tcp 1517756159 1.6.1.8 58531 typ host tcptype passive generation 0 ufrag XvhD network-id 6 network-cost 50","sdpMid":"audio"} [log] 10:51:38 Got new remote ICE candidate: {"sdpMLineIndex":0,"candidate":"candidate:707481330 1 udp 1685987071 3.1.1.1 61638 typ srflx raddr 1.1.4.1 rport 58323 generation 0 ufrag XvhD network-id 9 network-cost 900","sdpMid":"audio"} [log] 10:51:31 ICE gathering state change: RTCIceGatheringState.RTCIceGatheringStateComplete [log] 10:51:59 Connection state change: RTCPeerConnectionState.RTCPeerConnectionStateConnected [log] 10:51:59 ICE connection state change: RTCIceConnectionState.RTCIceConnectionStateConnected

System Infomation() Flutter SDK Version: Flutter (Channel beta, 2.12.0-4.1.pre) Flutter_webrtc: 0.8.5 Target OS and Version: iOS 15.5 and 15.6

alexzh16 avatar May 29 '22 10:05 alexzh16

I am not sure that such issues are related exactly to flutter-webrtc because for all ICE stuff, it just uses Google WebRTC library.

Did you try to reproduce your connections cases with the browser bases WebRTC client? It could give the understanding that is the issue in your network environment or with the current Google WebRTC library version used by flutter-webrtc. And as a bonus, browsers have great WebRTC troubleshooting tools that could help troubleshoot.

ycherniavskyi avatar Jul 07 '22 10:07 ycherniavskyi

This is not on my network, but gsm mobile operator. wifi working all ok. ice check peer is too long time.

alexzh16 avatar Sep 21 '22 14:09 alexzh16