Spydroid src源码有以下几个package:
net.majorkernelpanic.http主要是介绍http server,spydroid自身内置http服务器.
This is an HTTP interface for spydroid that would start a video stream from the phone's camera to some remote client and return an appropriate sdp file.
* For example: "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp?h264"
* You can also specify a stream id and then start a maximum of 2 streams in parallel
* For example: "http://xxx.xxx.xxx.xxx:8080/spydroid.sdp?id=0&h264"
net.majorkernelpanic.mp4主要是介绍提取mp4文件的profile,sps,pps等信息
net.majorkernelpanic.networking 主要是介绍rtsp服务器部分,spydroid自身内置rtsp服务器,客户端可以通过在VLC等播放器中输入rtsp://ip:8086/播放
net.majorkernelpanic.rtp主要是介绍rtp协议通信
net.majorkernelpanic.spydroid主要是activity的界面部分。
net.majorkernelpanic.streaming主要是stream接口和抽象类
net.majorkernelpanic.streaming.audio介绍音频部分
net.majorkernelpanic.streaming.video介绍视频部分
RtspServer
* Implementation of a subset of the RTSP protocol (RFC 2326)
* This allow remote control of an android device cameras & microphone
* For each connected client, a Session is instantiated
* The Session will start or stop streams according to what the client wants
RequestListenerThread
http://192.168.1.105:8080/spydroid.sdp