|  |  |  | 
|---|
|  |  |  | import com.genersoft.iot.vmp.gb28181.transmit.cmd.ISIPCommanderForPlatform; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.gb28181.transmit.event.request.ISIPRequestProcessor; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.gb28181.transmit.event.request.SIPRequestProcessorParent; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.media.zlm.ZLMRTPServerFactory; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.media.zlm.ZLMServerFactory; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.media.zlm.ZlmHttpHookSubscribe; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem; | 
|---|
|  |  |  | import com.genersoft.iot.vmp.service.IMediaServerService; | 
|---|
|  |  |  | 
|---|
|  |  |  | private IVideoManagerStorage storager; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ZLMRTPServerFactory zlmrtpServerFactory; | 
|---|
|  |  |  | private ZLMServerFactory ZLMServerFactory; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ZlmHttpHookSubscribe hookSubscribe; | 
|---|
|  |  |  | 
|---|
|  |  |  | startSendRtpStreamHand(evt, sendRtpItem, parentPlatform, jsonObject, param, callIdHeader); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | // 如果是非严格模式,需要关闭端口占用 | 
|---|
|  |  |  | JSONObject startSendRtpStreamResult = null; | 
|---|
|  |  |  | if (sendRtpItem.getLocalPort() != 0) { | 
|---|
|  |  |  | if (zlmrtpServerFactory.releasePort(mediaInfo, sendRtpItem.getSsrc())) { | 
|---|
|  |  |  | startSendRtpStreamResult = zlmrtpServerFactory.startSendRtpStream(mediaInfo, param); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | startSendRtpStreamResult = zlmrtpServerFactory.startSendRtpStream(mediaInfo, param); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | JSONObject startSendRtpStreamResult = ZLMServerFactory.startSendRtpStream(mediaInfo, param); | 
|---|
|  |  |  | if (startSendRtpStreamResult != null) { | 
|---|
|  |  |  | startSendRtpStreamHand(evt, sendRtpItem, parentPlatform, startSendRtpStreamResult, param, callIdHeader); | 
|---|
|  |  |  | } | 
|---|