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
免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:libstreaming android下 rtsp client 方法 https://www.yhzz.com.cn/a/20472.html