<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
{font-family:新細明體}
@font-face
{font-family:新細明體}
@font-face
{font-family:Calibri}
@font-face
{}
@font-face
{font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"新細明體","serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:#1F497D}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:72.0pt 90.0pt 72.0pt 90.0pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="ZH-TW" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D">The transport layer protocol is chosen by rtsp client.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D">You can check this article to make vlc(rtsp client) send SETUP request that chooses tcp as transport layer.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D"><a href="https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-playback-rtsp-rtp-interleaved-and-tuning?64-How-to-configure-VLC-media-player-for-RTSP-RTP-playback-%28RTSP-RTP-interleaved-and-tuning%29">https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-playback-rtsp-rtp-interleaved-and-tuning?64-How-to-configure-VLC-media-player-for-RTSP-RTP-playback-%28RTSP-RTP-interleaved-and-tuning%29</a></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D">The key function for handling transport layer in gst-rtsp-server is in rtsp-client.c : handle_setup_request(..).</span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D"> </span></a></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D">Bruce Liang
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Dwight Kulkarni via gstreamer-devel<br>
<b>Sent:</b> Thursday, September 2, 2021 4:05 AM<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Cc:</b> Dwight Kulkarni<br>
<b>Subject:</b> RTSP Server with UDP or TCP Streaming</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi all,</span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Recently I have got the RTSP server running with Gstreamer. In VLC Client, I can view the stream via: rtsp://<a href="http://user:password@192.168.20.15/myserviceurl">user:password@192.168.20.15/myserviceurl</a></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Currently it appears that the RTSP server is streaming only in UDP by default. When I try to access it with some clients and specify TCP, it doesn't work, although VLC doesn't ask me to specify.</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I was trying to see where the protocol UDP or TCP is being set in the Gstreamer RTSP server. We are making the following calls to initialize the server, and I can't seem to find where the protocol is set. Can anyone point
me in the right direction.</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">gst_rtsp_server_new()</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">gst_rtsp_server_set_address(..)</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">gst_rtsp_server_set_service( .. )</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">gst_rtsp_media_factory_new( .. )</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">gst_rtsp_server_get_mount_points( ..)</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">gst_rtsp_server_attach( .. )</span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance !</span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">-- </span></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt">Sincerely,</span><span lang="EN-US"></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Dwight Kulkarni </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
*** Confidentiality Note *** This e-mail message and any accompanying documents are for sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
</body>
</html>