[Live-devel] RTSP reconnect
Miguel Angel Arcos
marcos at a5security.com
Thu Mar 25 07:47:55 PDT 2010
I have been triying to discover more info about my problem and now I can
extract some more conclusions. I followed the next steps:
1. Connect my client and start the receiving of the image data from the
camera.
2. I disconnect the network more than one minute.
(My program try to connect every 30 seconds If he detect the lose of
connection)
3. After 2+ retries I connect the network again. In retries I only try to
create one RTSPClient and call the function sendOptionsCmd an when this fail
I wait 30 secs more to repeat.
4. When I create again the client all the process starts
OK(...setupMediaSubsession, playMediaSession(I see on wireshark how the
camera starts to send me data) and I call
getNextFrame(...AfterReadingFrame...).
5. In my function AfterReadingFrame the program never stops if I put a
breakpoint.
At last, If I reconnect correctly at first try I receive the data correctly
in AfterReadingFrame. The problem is when I try more than one time an after
all the camera connect. I can't see where is the problem....
Thanks for your help Ross.
2010/3/25 Ross Finlayson <finlayson at live555.com>
> Can I create another RTSPClient without stopping the EventLoop?
>>
>
> Yes, of course.
>
>
>
> There are any function that I can use to know if the server is up without
>> the creation of a RTSPClient?
>>
>
> Not really. The only reliable way to know whether a RTSP server is running
> is to use RTSP.
> --
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
--
Miguel Angel Arcos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100325/48db0907/attachment.html>
More information about the live-devel
mailing list