mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 15:37:50 +08:00
上级平台点播不携带SSRC时不使用0000000000作为默认ssrc,而从流媒体服务器获取SSRC作为推流SSRC
This commit is contained in:
parent
a53dce38c2
commit
ac053cbd3f
@ -5,6 +5,7 @@ import com.genersoft.iot.vmp.conf.DynamicTask;
|
|||||||
import com.genersoft.iot.vmp.conf.UserSetting;
|
import com.genersoft.iot.vmp.conf.UserSetting;
|
||||||
import com.genersoft.iot.vmp.gb28181.bean.*;
|
import com.genersoft.iot.vmp.gb28181.bean.*;
|
||||||
import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
|
import com.genersoft.iot.vmp.gb28181.event.SipSubscribe;
|
||||||
|
import com.genersoft.iot.vmp.gb28181.session.SsrcConfig;
|
||||||
import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager;
|
import com.genersoft.iot.vmp.gb28181.session.VideoStreamSessionManager;
|
||||||
import com.genersoft.iot.vmp.gb28181.transmit.SIPProcessorObserver;
|
import com.genersoft.iot.vmp.gb28181.transmit.SIPProcessorObserver;
|
||||||
import com.genersoft.iot.vmp.gb28181.transmit.SIPSender;
|
import com.genersoft.iot.vmp.gb28181.transmit.SIPSender;
|
||||||
@ -252,7 +253,15 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
|||||||
String substring = contentString.substring(0, contentString.indexOf("y="));
|
String substring = contentString.substring(0, contentString.indexOf("y="));
|
||||||
sdp = SdpFactory.getInstance().createSessionDescription(substring);
|
sdp = SdpFactory.getInstance().createSessionDescription(substring);
|
||||||
} else {
|
} else {
|
||||||
|
if(mediaServerItem!=null)
|
||||||
|
{
|
||||||
|
SsrcConfig ssrcConfig = mediaServerItem.getSsrcConfig();
|
||||||
|
ssrc = ssrcConfig.getPlaySsrc();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ssrc = ssrcDefault;
|
ssrc = ssrcDefault;
|
||||||
|
}
|
||||||
sdp = SdpFactory.getInstance().createSessionDescription(contentString);
|
sdp = SdpFactory.getInstance().createSessionDescription(contentString);
|
||||||
}
|
}
|
||||||
String sessionName = sdp.getSessionName().getValue();
|
String sessionName = sdp.getSessionName().getValue();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user