What is the timeout value that you get in the SETUP response? Do you use this value to implement supported functions?
Session = "Session" ":" session-id [";" "timeout" "=" delta-seconds]
Typically, RTSP is based on TCP and RTP is based on UDP. Therefore, ideally, both channels require the preservation of functionality. If the RTP session is closed, this does not mean that the RTSP connection should also be disconnected, while the RTP channels should be closed when the RTSP channel is broken.
1) What is the best way to communicate with the RTSP server? → Send any RTSP request periodically (OPTIONS, SET_PARAMETER or GET_PARAMETER) before the timeout value received in the SETUP response.
2) Do I need to perform RTCP [send RTCP packets to the server]? Can the connection fail because I do not send RTCP packets to the server? → RFC (RTSP or RTP) does not require an RTCP requirement to support RTP channels.
Alam
source share