A question about UDP broadcast

In sources\apps\apps-common\src\deepstream_sink_bin.c,

Why set up UDP broadcast and set it to this address(
If UDP broadcast is not set, will it affect the output of RTSP?

RTP supports transmitting data over unicast and multicast network services.( rfc3550 (ietf.org)) In the sample code, we use a multicast address, if you want to use other multicast address or unicast address, it is OK.

This is just a sample. You can modify the sample as you like.
It is RTSP(RTP) protocol related. It is a necessary of you to know about RTSP protocol if you want to use this protocol. Please focus on deepstream topics in deepstream forum.

Thanks for your reply.
If I do not set the unicast or multicast address (comment out this line of code),
the rtsp stream cannot be played using VLC. Is it necessary to set this address? why?

It is very easy to find udpsink and udpsrc introduction in internet.
udpsrc (gstreamer.freedesktop.org)
udpsink (gstreamer.freedesktop.org)
GStreamer UDP stream examples · GitHub

Please study the gstreamer part by yourself. It has nothing to do with deepstream.

OK, thank you very much !