Is there a way to have max HTTP reconnects for a stream?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
shortenedpiston
New Cone
New Cone
Posts: 2
Joined: 13 Nov 2018 15:52

Is there a way to have max HTTP reconnects for a stream?

Postby shortenedpiston » 13 Nov 2018 16:21

I understand --http-reconnect and --no-http-reconnect determine whether or not to reconnect to an HTTP stream if disconnected. Is there any way to say "max reconnects" so that the stream is aborted after X reconnects? It would really help to be able to determine a stream has ended, say if you can't reconnect after 10 times it's probably over. Currently it seems like you either have to never reconnect or always reconnect.

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Is there a way to have max HTTP reconnects for a stream?

Postby Rémi Denis-Courmont » 13 Nov 2018 17:32

In VLC 3.0, reconnection is automatic based on the size of the stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

shortenedpiston
New Cone
New Cone
Posts: 2
Joined: 13 Nov 2018 15:52

Re: Is there a way to have max HTTP reconnects for a stream?

Postby shortenedpiston » 13 Nov 2018 18:47

In VLC 3.0, reconnection is automatic based on the size of the stream.

Thanks, Rémi. It does still seem like --no-http-reconnect and --http-reconnect will override this though. Is there a way I can tell VLC to give up on a stream once it starts getting too many "http stream error: cannot connect"? Currently it seems like it will just retry forever, and using --no-http-reconnect means it will never retry which could end the stream prematurely if there's a network hiccup.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests