Hello, I am having a problem while using the rtspsrc element in deepstream sdk.
SDK Version is 6.3 and the problem is hardware independent.
When the camera is connected, the image comes without any problem. However, if the camera is not connected at startup, it gives an error and does not connect again when I reconnect the camera.
I need to close and reopen the application.
Error received when Camera is not Connected:
ERROR from element rtsp-source-0: Could not open resource for reading and writing.
Error details: gstrtspsrc.c(7893): gst_rtspsrc_retrieve_sdp (): /****:rtsp-source-0:
Failed to connect. (Generic error)
How can I ensure an automatic reconnection process when the camera connection is lost?
The parameters I have set on the object are as follows.
setConnectionSpeed(0);
setDebug(TRUE);
setDoRetransmission(TRUE);
setDoRtcp(TRUE);
setDoRtspKeepAlive(TRUE);
setDropOnLatency(FALSE);
setLatency(0);
setLocation("rtsp://****/cam/realmonitor?channel=1&subtype=1");
setMaxRtcpRtpTimeDiff(1000);
setMaxTsOffset(3000000000);
setMaxTsOffsetAdjustment(0);
setMulticastIface(NULL);
setNtpSync(FALSE);
setPortRange(NULL);
setProbation(2);
setProxy(NULL);
setProxyId(nullptr);
setProxyPw(nullptr);
setRetry(20);
setRfc7273Sync(FALSE);
setRtpBlocksize(0);
setShortHeader(FALSE);
setTcpTimeout(20000000);
setTeardownTimeout(100000000);
setTimeout(5000000);
setTlsValidationFlags(G_TLS_CERTIFICATE_INSECURE);
setUdpBufferSize(524288);
setUdpReconnect(TRUE);
setUsePipelineClock(FALSE);
setUserAgent("GStreamer/{VERSION}");
setUserId( "****");
setUserPw("****");
Thanks.