Commit 3380ce30a2311789a85f3c367ab6834e2213c980
1 parent
93c632f2
合并主线
Showing
2 changed files
with
2 additions
and
3 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/BroadcastNotifyMessageHandler.java
| @@ -119,7 +119,7 @@ public class BroadcastNotifyMessageHandler extends SIPRequestProcessorParent imp | @@ -119,7 +119,7 @@ public class BroadcastNotifyMessageHandler extends SIPRequestProcessorParent imp | ||
| 119 | return; | 119 | return; |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | - MediaServerItem mediaServerForMinimumLoad = mediaServerService.getMediaServerForMinimumLoad(); | 122 | + MediaServerItem mediaServerForMinimumLoad = mediaServerService.getMediaServerForMinimumLoad(null); |
| 123 | commanderForPlatform.broadcastResultCmd(platform, deviceChannel, sn, true, eventResult->{ | 123 | commanderForPlatform.broadcastResultCmd(platform, deviceChannel, sn, true, eventResult->{ |
| 124 | logger.info("[国标级联] 语音喊话 回复失败 platform: {}, 错误:{}/{}", platform.getServerGBId(), eventResult.statusCode, eventResult.msg); | 124 | logger.info("[国标级联] 语音喊话 回复失败 platform: {}, 错误:{}/{}", platform.getServerGBId(), eventResult.statusCode, eventResult.msg); |
| 125 | }, eventResult->{ | 125 | }, eventResult->{ |
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| @@ -277,12 +277,11 @@ public class ZLMHttpHookListener { | @@ -277,12 +277,11 @@ public class ZLMHttpHookListener { | ||
| 277 | JSONObject ret = new JSONObject(); | 277 | JSONObject ret = new JSONObject(); |
| 278 | ret.put("code", 0); | 278 | ret.put("code", 0); |
| 279 | ret.put("msg", "success"); | 279 | ret.put("msg", "success"); |
| 280 | - | 280 | + MediaServerItem mediaInfo = mediaServerService.getOne(param.getMediaServerId()); |
| 281 | JSONObject json = (JSONObject) JSON.toJSON(param); | 281 | JSONObject json = (JSONObject) JSON.toJSON(param); |
| 282 | taskExecutor.execute(() -> { | 282 | taskExecutor.execute(() -> { |
| 283 | ZlmHttpHookSubscribe.Event subscribe = this.subscribe.sendNotify(HookType.on_stream_changed, json); | 283 | ZlmHttpHookSubscribe.Event subscribe = this.subscribe.sendNotify(HookType.on_stream_changed, json); |
| 284 | if (subscribe != null) { | 284 | if (subscribe != null) { |
| 285 | - MediaServerItem mediaInfo = mediaServerService.getOne(param.getMediaServerId()); | ||
| 286 | if (mediaInfo != null) { | 285 | if (mediaInfo != null) { |
| 287 | subscribe.response(mediaInfo, json); | 286 | subscribe.response(mediaInfo, json); |
| 288 | } | 287 | } |