vaibhav rai Posted September 29, 2020 Share Posted September 29, 2020 Hi, I am building an app using Ant Media Server and SDK. I am able to Start Playing and Live stream but While switching to another app in android, session getting disconnected on Player and publisher side. Link to comment Share on other sites More sharing options...
0 Nagendra Kumar1648581702 Posted September 29, 2020 Share Posted September 29, 2020 Hi Vaibhav, Check this one https://github.com/ant-media/Ant-Media-Server/issues/2362 Most of the auto disconnects are due to websocket idle timeout problem. Either android is not sending ping or server is not responding to pong. Detailed analysis is in that gihtub issue. Thanks Nagendra Link to comment Share on other sites More sharing options...
0 Sushruth Sivaramakrishnan Posted September 29, 2020 Share Posted September 29, 2020 Hi Nagendra,What I have seen is, low timeouts or frequent heartbeat intervals for socket causes some android devices to timeout when they are processing something in the background. You might want to isolate that issue. Cheers,Sushruth Link to comment Share on other sites More sharing options...
0 Nagendra Kumar1648581702 Posted September 29, 2020 Share Posted September 29, 2020 Total agree and that is where ideal timeout comes into the picture. In the android issue mentioned above, ant-media sdk has one issue where the ping was not acknowledged as a result aws server was hitting ideal timeout. Thanks Nagendra Link to comment Share on other sites More sharing options...
0 Sushruth Sivaramakrishnan Posted September 29, 2020 Share Posted September 29, 2020 do you see the webrtc connection also disconnect ? or is it just the socket ?If just the socket, you might want to update the code to handle just socket disconnections in a different way Link to comment Share on other sites More sharing options...
0 Nagendra Kumar1648581702 Posted September 29, 2020 Share Posted September 29, 2020 In my case, it was the WebSocket issue, which caused the webrtc to go down. Later on, we found that due to the bug client was never sending the ping and after 50 seconds (aws websocket ideal time) aws considered that websocket is idle and disconnected it. Thanks Nagendra Link to comment Share on other sites More sharing options...
0 Tahir Posted October 3, 2020 Share Posted October 3, 2020 Hi, Can you send me your log files? Link to comment Share on other sites More sharing options...
Question
vaibhav rai
Hi,
Link to comment
Share on other sites
Top Posters For This Question
3
2
1
1
Popular Days
Sep 29
6
Oct 3
1
Top Posters For This Question
Nagendra Kumar1648581702 3 posts
Sushruth Sivaramakrishnan 2 posts
Tahir 1 post
vaibhav rai 1 post
Popular Days
Sep 29 2020
6 posts
Oct 3 2020
1 post
6 answers to this question
Recommended Posts