Skip to content

Commit 682e202

Browse files
author
Paulo Morgado
committed
Added support for RTSPS to RTSPClient
Used `Rtsp.RtspUtils.CreateRtspTransportFromUrl(_uri)` to create RTSP transport.
1 parent 4508067 commit 682e202

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/SharpRTSPClient/RTSPClient.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,7 @@ public void Connect(string url, RTPTransport rtpTransport, string username = nul
182182
_rtspSocketStatus = RtspStatus.Connecting;
183183
try
184184
{
185-
if (_uri.Scheme.Equals(Uri.UriSchemeHttp, StringComparison.InvariantCultureIgnoreCase))
186-
{
187-
_rtspSocket = new RtspHttpTransport(_uri, _credentials);
188-
}
189-
else
190-
{
191-
_rtspSocket = new RtspTcpTransport(_uri);
192-
}
185+
_rtspSocket = Rtsp.RtspUtils.CreateRtspTransportFromUrl(_uri);
193186
}
194187
catch
195188
{

0 commit comments

Comments
 (0)