如何使RTSP服务器在android手机? [英] how to make RTSP server at android phone?

查看:173
本文介绍了如何使RTSP服务器在android手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从android手机发送流媒体视频到计算机服务器上的RTSP。

I want send streaming video from android phone to computer server on RTSP.

服务器是用java codeD。

the server is coded using java.

我该怎么办呢?

推荐答案

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

从你的Andr​​oid设备的流数据来看看这个线程: <一href="http://stackoverflow.com/questions/7332532/creating-rtp-packets-from-android-camera-to-send/7333154#7333154">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

这篇关于如何使RTSP服务器在android手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆