GenerallyRTSPThe implementation of data transmission in the Protocol isUDPTo makeRTSPFor Data TransmissionTCP.DarwinstreamingserverThe server can adapt to the data transmission requests initiated by the client.TCPMethod, or useUDPThe only solution here is the initiation of the client protocol.VLCSupportedRTSP over TCP.
The remaining problems are easy to solve.VLCToTCPTo initiate a connection.
DSSI will not introduce the installation configuration. If you do not understand it, check it online.
Method 1: TCP Transmit media data
My previousArticle(Http://www.cnblogs.com/MikeZhang/archive/2012/09/09/vlcStreamingServer20120909.html).VLCIn additionUDPMedia Data TransmissionRTSPProtocol. In fact, today's demand only needsVLCAdd the following options to the command line parameters:
-- RTSP-TCP
Out-of-the-boxTCPTo access the server, run the following command:
VLC rtsp:// 172.16.1.1/test -- RTSP-TCP
This is one ofRTPData Packets:
We can see thatRTPThe data packet is based onTCP implementation.
Method 2: UDP Transmit media data
AlthoughDSSIs being interactedVLCBy defaultUDPFor media data transmission, but we also need to consider the situation of switching to another streaming media service, so we can add the following parameters for restrictions:
-- No-RTSP-TCP
Out-of-the-boxUDPTo access the server, run the following command:
VLC rtsp:// 172.16.1.1/test -- no-RTSP-TCP
One of the data packetsRTPThe package is as follows:
As shown in the figureRTPIs based onUDP.
Okay, that's all. I hope it will help you.