From 7c019dbeef4ee1f79bd09d87abf18112b4ffc376 Mon Sep 17 00:00:00 2001 From: 刘跃龙 <yjkhtddx@sina.com> Date: 星期四, 16 二月 2023 18:18:10 +0800 Subject: [PATCH] RTP推流地址应使用SDP中Connection中的IP地址,原来使用Origin中的IP地址,在流媒体服务和信令服务不在同一台设备上时,媒体流数据将发给信令服务器,导致无法播放BUG。 --- src/main/java/com/genersoft/iot/vmp/gb28181/bean/SubscribeInfo.java | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SubscribeInfo.java b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SubscribeInfo.java index e971c7a..07176f2 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SubscribeInfo.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/bean/SubscribeInfo.java @@ -3,15 +3,13 @@ import gov.nist.javax.sip.message.SIPRequest; import gov.nist.javax.sip.message.SIPResponse; -import javax.sip.ServerTransaction; import javax.sip.header.*; public class SubscribeInfo { - public SubscribeInfo(ServerTransaction serverTransaction, String id) { + public SubscribeInfo(SIPRequest request, String id) { this.id = id; - SIPRequest request = (SIPRequest)serverTransaction.getRequest(); this.request = request; this.expires = request.getExpires().getExpires(); EventHeader eventHeader = (EventHeader)request.getHeader(EventHeader.NAME); -- Gitblit v1.8.0