Is it possible to turn off RTSP when the app starts and turn on/off rtsp streaming as needed?

**• Hardware Platform : Nano
**• DeepStream Version : 5.1
**• JetPack Version : 4.5.1

Is it possible to turn off RTSP when the app starts and turn on/off rtsp streaming as needed?
If possible, which part of the source code should be modified?

[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4

Hi,
There is a sample which demonstrates adding/deleting RTSP sources in runtime:
deepstream_python_apps/apps/runtime_source_add_delete at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

Please take a look and give it a try.