[vlc-devel] Switch OFF reconnecting in RTSP over HTTP
jan.olszak at vestiacom.com
Mon Apr 30 13:55:08 CEST 2018
The problem seems to be here in the continueAfterOPTIONS function - it
doesn't take into consideration we are using RTSP over HTTP.
Live555 passes an error from the HTTP GET request and VLC interprets as an
error from RTSP OPTIONS request.
Here's the function.
static void continueAfterOPTIONS( RTSPClient* client, int result_code,
char* result_string )
RTSPClientVlc *client_vlc = static_cast<RTSPClientVlc *> (client);
demux_sys_t *p_sys = client_vlc->p_sys;
// If OPTIONS fails, assume GET_PARAMETER is not supported but
// still continue on with the stream. Some servers (foscam)
// return 501/not implemented for OPTIONS.
result_code == 0
&& result_string != NULL
&& strstr( result_string, "GET_PARAMETER" ) != NULL;
client->sendDescribeCommand( continueAfterDESCRIBE );
On Fri, Apr 27, 2018 at 10:50 AM, Jan Olszak <jan.olszak at vestiacom.com>
> I fiddled with --ipv4-timeout and looked into live55.cpp and now I'm 90%
> sure the problem is in live555.
> I'll try to use openRTSP later and confirm.
> On Thu, Apr 26, 2018 at 10:02 PM, Ross Finlayson <finlayson at live555.com>
>> > On Apr 25, 2018, at 3:26 AM, Jan Olszak <jan.olszak at vestiacom.com>
>> > Hi there!
>> > I'm writing a simple RTSP over HTTP client using libVLC. It connects to
>> a server on the same machine and the connect() is very fast. It turns out
>> that when the server returns an error to the GET request libvlc retries to
>> connect. It retries couple of times and stops probably due to timeout.
>> What happens if - instead of (lib)VLC - you use the “openRTSP”
>> command-line tool: <http://www.live555.com/openRTSP/>? This will tell
>> you whether the issue is one that happens within the LIVE555 library, or
>> instead in (lib)VLC’s “live555.cpp” interface code.
>> Ross Finlayson
>> Live Networks, Inc.
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel