libstreaming android下 rtsp client 方法
在 H264Stream.java 中有如下
public synchronized String getSessionDescription() throws IllegalStateException { if (mConfig == null) throw new IllegalStateException(“You need to call configure() first !”); return “m=video “+String.valueOf(getDestinationPorts()[0])+” RTP/AVP 96\r\n” + “a=rtpmap:96 H264/90000\r\n” + “a=fmtp:96 packetization-mode=1;profile-level-id=”+mConfig.getProfileLevel()+”;sprop-parameter-sets=”+mConfig.getB64SPS()+”,”+mConfig.getB64PPS()+”;\r\n”; }H264Stream.java 继承自 VideoStream.java
VideoStream.java 继承自 Stream.java
Stream.java 继承自 MediaStream.javartsp client
先 announce, 然后setup , 在 record