GB28181Description 补充 StreamType 主/子码流字段定义

This commit is contained in:
shikong 2024-01-07 19:23:51 +08:00
parent 70153f192c
commit bf5be55ec8

View File

@ -62,6 +62,9 @@ public class SdpTest {
GB28181Description play = GB28181SDPBuilder.Receiver.play(deviceId, channelId, rtpNetType, rtpIp, rtpPort, ssrc, MediaStreamMode.TCP_ACTIVE); GB28181Description play = GB28181SDPBuilder.Receiver.play(deviceId, channelId, rtpNetType, rtpIp, rtpPort, ssrc, MediaStreamMode.TCP_ACTIVE);
log.info("sdp play 请求\n{}",play); log.info("sdp play 请求\n{}",play);
play = GB28181SDPBuilder.Receiver.play(deviceId, channelId, rtpNetType, rtpIp, rtpPort, ssrc, MediaStreamMode.TCP_ACTIVE, GB28181SDPBuilder.StreamType.GB2022.MAIN);
log.info("sdp play 请求\n{}",play);
final String psType = "96"; final String psType = "96";
Map<String,String> respRtpMap = new HashMap<>(){{ Map<String,String> respRtpMap = new HashMap<>(){{
put(psType, GB28181SDPBuilder.RTPMAP.get(psType)); put(psType, GB28181SDPBuilder.RTPMAP.get(psType));