Re: [Live-devel] I want to get disconnect event triggered from RTSP server.

2020-03-27 Thread Ross Finlayson
Yes, thanks for the reminder that our RTSP server implementation - due to a bug that needs fixing - currently does not send a RTCP “BYE” when a stream ends. That will be fixed sometime (perhaps fairly soon). But that’s not particularly relevant here, because you are asking about how to program

Re: [Live-devel] I want to get disconnect event triggered from RTSP server.

2020-03-27 Thread Steve Ha
Hi Ross, > *The way to do this is to look for, and handle, a RTCP “BYE” packet that > the server should send when it ends the stream. And the way to do that is > to call “setByeHandler()” or “setByeWithReasonHandler()” on the > “RTCPInstance” object.* > I had installed ByeHandler in RTSP client

Re: [Live-devel] I want to get disconnect event triggered from RTSP server.

2020-03-27 Thread Ross Finlayson
> On Mar 27, 2020, at 7:50 PM, Steve Ha wrote: > > Hi Ross, > > My RTSP client application needs to recognize disconnect event triggered from > the RTSP server. The way to do this is to look for, and handle, a RTCP “BYE” packet that the server should send when it ends the stream. And the w

[Live-devel] I want to get disconnect event triggered from RTSP server.

2020-03-26 Thread Steve Ha
Hi Ross, My RTSP client application needs to recognize disconnect event triggered from the RTSP server. But I could not find any way to get such event. By debugging I could see the disconnect event happening inside the function RTSPClient::handleResponseBytes() when the argument 'newBytesRead' h