RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

Reconnect the stream in previous URL when internet connection interrupts or switch from wifi to gsm or vice versa.

Open RedwanSharafatKabir opened this issue 1 year ago • 2 comments

I am streaming in a URL that only allows one stream. But if the internet disconnects the stream from the Application side, stops. And streaming on the URL also stops. How to re-stream when the internet is restored.

RedwanSharafatKabir avatar Jul 15 '24 07:07 RedwanSharafatKabir

Hello,

You can do a reconnection like here: https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt#L199 Remember add the number of retries: https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt#L171

If you want connect to other url you can replace the null value of the first link to your new url

pedroSG94 avatar Jul 15 '24 08:07 pedroSG94

Its working great now. Thanks a lot for your fast reply.

RedwanSharafatKabir avatar Jul 15 '24 10:07 RedwanSharafatKabir