[vlc-devel] Switch OFF reconnecting in RTSP over HTTP
Jan Olszak
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;
p_sys->b_get_param =
// 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 );
delete[] result_string;
}
Cheers,
Jan
On Fri, Apr 27, 2018 at 10:50 AM, Jan Olszak <jan.olszak at vestiacom.com>
wrote:
> 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.
>
> Thanks!
> Jan
>
> On Thu, Apr 26, 2018 at 10:02 PM, Ross Finlayson <finlayson at live555.com>
> wrote:
>
>> > On Apr 25, 2018, at 3:26 AM, Jan Olszak <jan.olszak at vestiacom.com>
>> wrote:
>> >
>> > 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.
>>
>> Jan,
>>
>> 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.
>> http://www.live555.com/
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20180430/5bfb5bbe/attachment-0001.html>
More information about the vlc-devel
mailing list