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.java

rtsp client

先 announce, 然后setup , 在 record

Logo

GitCode AI社区是一款由 GitCode 团队打造的智能助手,AI大模型社区、提供国内外头部大模型及数据集服务。

更多推荐