更新时间:2023-02-27 08:34:34
RTSP只是一个流protocal只包括有关流,没有数据的信息。你可以使用它作为一个隧道用于数据流(如RTP)。您可以使用RTSP作为一个TCP连接来支持你的UDP流。所以必要的数据不会丢失。
RTSP is just a streaming protocal which only includes information about a stream and no data. you can use it as a "tunnel" for data streams (e.g. RTP). you can use RTSP as a tcp connection to support your udp stream. so necessary data can't get lost.
下面是RTSP服务器 - 客户端通信的简单例子:的视频流与RTSP和RTP 。 还有在这个练习的连接(通信)只有基础知识和它的Java应用程序,所以你必须修改它一点点。
here is a simple example of a RTSP server-client communication: Streaming Video with RTSP and RTP. there are only the basics of the connection (communication) at this exercise and it's for a java application, so you have to modify it a little bit.
要获取有关RTSP连接和SDP文件查看 RFC2326一些更多的信息 - RTSP 和 RFC4566 - SDP
to get some more information about the RTSP connection and the sdp file check out the RFC2326 - RTSP and the RFC4566 - SDP
从你的Android设备的流数据来看看这个线程: Creating从Android摄像头的RTP包发送
to stream data from your android device take a look at this thread: Creating RTP Packets from Android Camera to Send
编辑:
发现这个很好的例子项目RTP流: SpyDroid
found this great example project for RTP streaming: SpyDroid