Cannot retry connection after switching network
See original GitHub issueI’m trying to reconnect after switching network but i got an error
java.lang.IllegalStateException
at android.media.MediaCodec.native_stop(Native Method)
at android.media.MediaCodec.stop(Unknown Source:0)
at com.pedro.encoder.BaseEncoder.stop(BaseEncoder.java:35)
at com.pedro.encoder.video.VideoEncoder.reset(VideoEncoder.java:174)
at com.pedro.rtplibrary.base.Camera2Base.resetVideoEncoder(Camera2Base.java:392)
at com.pedro.rtplibrary.base.Camera2Base.reTry(Camera2Base.java:456)
override fun onConnectionFailedRtmp(reason: String?) {
if (rtmpCamera.shouldRetry(reason)) {
rtmpCamera.reTry(2000)
}
}
Step to reproduce
- start stream
- turn-off wifi and turn on LTE
onConnectionFailedRtmp
will triggered and callrtmpCamera.reTry(2000)
- an error occurred.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Fix Steam Connection Error Could Not Connect To ... - YouTube
Fix Steam App Not Launching Connection Error Could Not Connect To The Steam Network Retry ConnectionStep 1) Make sure your connected to ...
Read more >How to Eliminate Steam Network Connection Errors - Lifewire
To do this, select Steam > Go Online > Connect to the Internet > Restart Steam. When you receive the Can't connect to...
Read more >Fix network connection issues in Windows - Microsoft Support
Try these things to troubleshoot network connection issues in Windows 11. Make sure Wi-Fi is on. Select Start > Settings > Network &...
Read more >Steam “retry connection” - Reddit
Everytime I try to log in, steam is offline or telling me that I need to retry connection or go to offline mode....
Read more >Fixed: Could Not Connect to Steam Network [Complete Guide]
Solution 1. Change Your Steam's Internet Protocol; Solution 2. Check Your Internet Connection Works Normally; Solution 3. Reinstall Your Steam ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was doing multiple test, but in my case this only fail when I dont do retry in main thread. Can you test with this code?
It’s work, thanks