VLC for Android reconnect the current stream
Posted: 23 Mar 2023 09:02
Hi everyone,
I have a little strange problem. I have developed a player which is based on VLC, and if the player is on and stream is opened, after that if I need to switch to standby/switchoff the android device and after some time need to switch on them, the player is resuming faster than network connections getting up and of course the stream cannot be played with following errors.
09:53:38.297 VLC E [8f9fa530/6d19] libvlc stream: connection failed: Network is unreachable
09:53:38.297 VLC E [8f9fa530/6d19] libvlc stream: cannot connect to http://XXXXXX
09:53:38.297 VLC D [a1d9a3d0/6d19] libvlc keystore: removing module "file"
09:53:38.297 VLC D [8f9fa530/6d19] libvlc stream: no access modules matched
09:53:38.297 VLC E [8ca83030/6d19] libvlc input: Your input can't be opened
09:53:38.297 VLC E [8ca83030/6d19] libvlc input: VLC is unable to open the MRL 'http://XXXXXX'. Check the log for details.
I have trying to put args like --loop --repeat --http-reconnect. But there is no effect to retry to play the stream.
Is there some tweaky to resolve this problem? Or I need to make a loop in Android activity to wait the network is on or not?
Thank you
I have a little strange problem. I have developed a player which is based on VLC, and if the player is on and stream is opened, after that if I need to switch to standby/switchoff the android device and after some time need to switch on them, the player is resuming faster than network connections getting up and of course the stream cannot be played with following errors.
09:53:38.297 VLC E [8f9fa530/6d19] libvlc stream: connection failed: Network is unreachable
09:53:38.297 VLC E [8f9fa530/6d19] libvlc stream: cannot connect to http://XXXXXX
09:53:38.297 VLC D [a1d9a3d0/6d19] libvlc keystore: removing module "file"
09:53:38.297 VLC D [8f9fa530/6d19] libvlc stream: no access modules matched
09:53:38.297 VLC E [8ca83030/6d19] libvlc input: Your input can't be opened
09:53:38.297 VLC E [8ca83030/6d19] libvlc input: VLC is unable to open the MRL 'http://XXXXXX'. Check the log for details.
I have trying to put args like --loop --repeat --http-reconnect. But there is no effect to retry to play the stream.
Is there some tweaky to resolve this problem? Or I need to make a loop in Android activity to wait the network is on or not?
Thank you